chiark
/
gitweb
/
~ianmdlvl
/
reprap-play.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
bc2cebf9da7637fd7ed998f087d7b9c6a0525e46
[reprap-play.git]
/
simplephone-case.scad
1
// -*- C -*-
2
3
psz = [
4
120,
5
56 + 5,
6
15 + 3,
7
];
8
9
thick = [
10
2,
11
3,
12
2.5,
13
];
14
15
btn_x = 58;
16
btn_dia = 14;
17
btn_yprop = 0.23;
18
19
module Case(){
20
difference(){
21
mirror([1,0,0])
22
translate(-thick)
23
cube(psz + 2*thick - [1,0,0] * (thick[0]));
24
25
for (yp= [ btn_yprop, 1-btn_yprop ])
26
translate([ -btn_x,
27
yp * psz[1],
28
0.5 * psz[2] ])
29
cylinder(r= btn_dia/2, h=20);
30
31
#mirror([1,0,0])
32
cube(psz + [1,0,0]);
33
}
34
}
35
36
Case();