-
Notifications
You must be signed in to change notification settings - Fork 1
/
topplate.scad
50 lines (45 loc) · 1.17 KB
/
topplate.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
$fn=31;
w = 33;
h = 33;
hd = 30.5;
t=1.6;
w_gps = 14;
h_gps = 22;
module corner(){
cylinder(h=t, d=6);
}
module screwhole(){
translate([0, 0, -0.01])cylinder(h=10, d=3.3);
}
module screwholes(){
translate([-hd/2, -hd/2, 0])screwhole();
translate([-hd/2, hd/2, 0])screwhole();
translate([hd/2, -hd/2, 0])screwhole();
translate([hd/2, hd/2, 0])screwhole();
translate([0, 13, 0])cylinder(d=2.5, h=10, center=true);
}
module recess(){
translate([0, 0, 1])cylinder(h=5, d=6);
}
module recesses(){
translate([-hd/2, -hd/2, 0])recess();
translate([-hd/2, hd/2, 0])recess();
translate([hd/2, -hd/2, 0])recess();
translate([hd/2, hd/2, 0])recess();
}
difference(){
hull(){
translate([-w/2, -h/2, 0])corner();
translate([-w/2, h/2, 0])corner();
translate([w/2, -h/2, 0])corner();
translate([w/2, h/2, 0])corner();
}
screwholes();
recesses();
}
hull(){
translate([-w_gps/2, 0, 0])cylinder(d=3, h=t);
translate([w_gps/2, 0, 0])cylinder(d=3, h=t);
translate([-w_gps/2, -h/2 -h_gps/2, 0])cylinder(d=3, h=t);
translate([w_gps/2, -h/2 -h_gps/2, 0])cylinder(d=3, h=t);
}