Newer
Older
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
// parameters for final rendering
//$fa = 1;
//$fs = 0.4;
bottom_plate_radius = 105;
bottom_plate_height = 5;
bottom_plate_edge_height = 5.2;
bottom_plate_edge_thickness = 4.8;
bottom_plate_slot_depth = 2;
bottom_plate_slot_width = 3.6;
bottom_plate_hole_radius = 10;
// bottom plate design
union(){
difference(){
// the plate
cylinder(h=bottom_plate_height, r=bottom_plate_radius, center = true);
//body slot
difference(){
translate([0,0,bottom_plate_height-bottom_plate_slot_depth])
cylinder(h=bottom_plate_slot_depth, r =bottom_plate_radius - bottom_plate_edge_thickness, center = true);
translate([0,0,bottom_plate_height-bottom_plate_slot_depth])
cylinder(h=bottom_plate_slot_depth, r =bottom_plate_radius - bottom_plate_edge_thickness - bottom_plate_slot_width, center = true);
}
//holes in the bottom plate
cylinder(h = bottom_plate_height, r = bottom_plate_hole_radius, center = true);
for (i=[1:1:2]){
n = 8 +(i-1)*6;
step = 360/n;
r = 40*i;
for (angle=[0:step:359]){
dx = r*cos(angle);
dy = r*sin(angle);
translate([dx,dy,0])
cylinder(h = bottom_plate_height, r = bottom_plate_hole_radius, center = true);
}
}
}
// the edge
difference(){
translate([0,0,bottom_plate_height])
cylinder(h=bottom_plate_edge_height, r=bottom_plate_radius,center = true);
translate([0,0,bottom_plate_height])
cylinder(h=bottom_plate_edge_height, r=bottom_plate_radius - bottom_plate_edge_thickness, center = true);
}
}