-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtop.scad
50 lines (39 loc) · 931 Bytes
/
top.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
resolution = 100;
body_ra = 0.5;
body_thickness = 0.4;
cone_height = 0.2;
cone_base_rad = 0.2;
bevel_height = 0.02;
axis_radius = 0.2;
axis_height = 0.8;
module axis(radius)
{
translate(v=[0,0,cone_height+body_thickness])
linear_extrude(axis_height, center = false)
circle(axis_radius, $fn = resolution);
}
module body()
{
translate(v=[0,0,cone_height])
linear_extrude(body_thickness, center = false)
circle(body_ra, $fn = resolution);
}
module cone()
{
cylinder(r1=0, r2=cone_base_rad, h=cone_height, $fn = resolution, center = false);
}
module top()
{
translate(v=[0,0,-bevel_height])
{
axis(axis_radius);
body();
difference()
{
cone();
linear_extrude(bevel_height, center = false)
circle(cone_base_rad, $fn = resolution, center = true);
}
}
}
top();