-
Notifications
You must be signed in to change notification settings - Fork 1
/
paramscoffee.scad
64 lines (56 loc) · 1.16 KB
/
paramscoffee.scad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
eps = 0.1;
$fn=10;
//muggy params
mug_od = 83;
mug_height = 100;
rim_thickness = 5;
// muggy derived params
mug_id = mug_od - rim_thickness*2;
module minkowskimug(){
minkowski(){
difference(){
cylinder(r=mug_od/2,h=mug_height);
translate([0,0,rim_thickness])cylinder(r=mug_id/2,h=mug_height+eps);
}
sphere(1);
}
}
module nominkowskimug(){
$fn=80;
difference(){
union(){
translate([0,0,mug_height])
rotate_extrude()
translate([mug_od/2-rim_thickness,0,0])
circle(r=rim_thickness);
cylinder(r=mug_od/2,h=mug_height);
}
translate([0,0,rim_thickness])cylinder(r=(mug_id-rim_thickness)/2,h=mug_height+eps);
}
}
scale([1,1,1])
translate([mug_od/2,0,mug_od/1.5])
rotate([90,0,0])
rotate_extrude($fn=40,convexity=10)
scale([5,1,1])
translate([mug_od/3,0,0])
rotate([45,45,45])
circle($fn=40,r=10);
nominkowskimug();
//
//module mugprofile(){ polygon( points=[[0,0],[mug_od/2,0],[mug_od/2,mug_height],[mug_od/2-rim_thickness,mug_height],[mug_od/2-rim_thickness,rim_thickness],[0,rim_thickness],[0,0]] );
//}
//
//
//
//
//
//rotate([90,0,0])minkowski(){
// mugprofile();
// circle(1);
//}
//
//difference(){
// circle(r=10);
// square(10);
//}