chiark / gitweb /
simplephone-case: more
[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 rail_ysz = 4;
20 rail_zsz = 2.5;
21
22 module Case(){
23   difference(){
24     mirror([1,0,0])
25       translate(-thick)
26       cube(psz + 2*thick - [1,0,0] * (thick[0]));
27
28     for (yp= [ btn_yprop, 1-btn_yprop ])
29       translate([ -btn_x,
30                   yp * psz[1],
31                   0.5 * psz[2] ])
32         cylinder(r= btn_dia/2, h=20);
33
34     #mirror([1,0,0])
35       difference(){
36         cube(psz + [1,0,0]);
37       }
38   }
39 }
40
41 Case();