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));
48 module RoundedProfile(sz, cnr_rad){
50 for (x=[ cnr_rad, sz[0]-cnr_rad ])
51 for (y=[ cnr_rad, sz[1]-cnr_rad ])
53 circle(r= cnr_rad, $fn=20);
57 module RoundedCube(sz, cnr_rad){
59 for (x=[ cnr_rad, sz[0]-cnr_rad ])
60 for (y=[ cnr_rad, sz[1]-cnr_rad ])
61 for (z=[ cnr_rad, sz[2]-cnr_rad ])
63 sphere(r= cnr_rad, $fn=20);
74 - [1,0,0] * (thick[0])
75 + [1,0,0] * (x_sliced)
76 - [case_x_less, 0, 0],
79 for (yp= [ btn_yprop, 1-btn_yprop ])
83 cylinder(r= btn_dia/2, h=20);
88 cube(concat(abtn_sz, [ thick[2]*3 ]), center=true);
91 translate([ screen_xbot,
92 (psz[1] - screen_sz[1])/2,
94 cube(concat(screen_sz, [ thick[2]+2 ]));
97 for (x=[ thumb_xbot+thumb_dia/2, psz[0]+10 ])
101 cylinder(r= thumb_dia/2,
107 translate([ (vol_xbot+vol_xtop)/2, 0, psz[2]/2 + vol_zoff ])
108 cube([ vol_xtop-vol_xbot, vol_depth*2, vol_zsz ], center=true);
110 translate([ thick[0], -10, -10 ])
111 cube([ 10, psz[1]+20, psz[2]+20 ]);
113 //translate([-50,-50,10]) cube([100,100,100]);
117 RoundedCube(psz + [1,0,0],
120 if (0) for (m=[0,1]) {
121 translate([0,ym,0]) mirror([0,m,0]) translate([0,-ym,0])
122 translate([-1,-1, psz[2]-rail_zsz])
123 cube([psz[0]+1, rail_ysz+1, rail_zsz+1]);
130 //RoundedCube(psz, inner_cnr_rad);