23 screen_sz = [ 35, 46 ];
37 case_x_less = 0; //case_x_less = 10;
44 outer_cnr_rad = inner_cnr_rad + thick[2];
46 x_sliced = outer_cnr_rad * (1-sin(45));
50 module RoundedProfile(sz, cnr_rad){
52 for (x=[ cnr_rad, sz[0]-cnr_rad ])
53 for (y=[ cnr_rad, sz[1]-cnr_rad ])
55 circle(r= cnr_rad, $fn=20);
59 module RoundedCube(sz, cnr_rad){
61 for (x=[ cnr_rad, sz[0]-cnr_rad ])
62 for (y=[ cnr_rad, sz[1]-cnr_rad ])
63 for (z=[ cnr_rad, sz[2]-cnr_rad ])
65 sphere(r= cnr_rad, $fn=8);
76 - [1,0,0] * (thick[0])
77 + [1,0,0] * (x_sliced)
78 - [case_x_less, 0, 0],
81 for (yp= [ btn_yprop, 1-btn_yprop ])
85 cylinder(r= btn_dia/2, h=20);
90 cube(concat(abtn_sz, [ thick[2]*3 ]), center=true);
94 translate([ screen_xbot,
95 (psz[1] - screen_sz[1])/2,
97 cube(concat(screen_sz, [ thick[2]+2 ]));
100 for (x=[ thumb_xbot+thumb_dia/2, psz[0]+10 ])
104 cylinder(r= thumb_dia/2,
110 translate([ (vol_xbot+vol_xtop)/2, 0, psz[2]/2 + vol_zoff ])
111 cube([ vol_xtop-vol_xbot, vol_depth*2, vol_zsz ], center=true);
113 translate([ thick[0], -10, -10 ])
114 cube([ 10, psz[1]+20, psz[2]+20 ]);
116 //translate([-50,-50,10]) cube([100,100,100]);
120 RoundedCube(psz + [1,0,0],
123 if (0) for (m=[0,1]) {
124 translate([0,ym,0]) mirror([0,m,0]) translate([0,-ym,0])
125 translate([-1,-1, psz[2]-rail_zsz])
126 cube([psz[0]+1, rail_ysz+1, rail_zsz+1]);
135 translate([ -vol_xbot, 0,0 ])
136 cube([ 4, 200,200 ], center=true);
142 //RoundedCube(psz, inner_cnr_rad);