23 screen_sz = [ 35, 46 ];
37 case_x_less = 0; //case_x_less = 10;
43 btn_yprop = btn_y / psz[1];
47 outer_cnr_rad = inner_cnr_rad + thick[2];
49 x_sliced = outer_cnr_rad * (1-sin(45));
53 module RoundedProfile(sz, cnr_rad){
55 for (x=[ cnr_rad, sz[0]-cnr_rad ])
56 for (y=[ cnr_rad, sz[1]-cnr_rad ])
58 circle(r= cnr_rad, $fn=20);
62 module RoundedCube(sz, cnr_rad){
66 for (x=[ cnr_rad, sz[0]-cnr_rad ])
67 for (y=[ cnr_rad, sz[1]-cnr_rad ])
68 for (z=[ cnr_rad, sz[2]-cnr_rad ])
70 sphere(r= cnr_rad, $fn=40);
81 - [1,0,0] * (thick[0])
82 + [1,0,0] * (x_sliced)
83 - [case_x_less, 0, 0],
86 for (yp= [ btn_yprop, 1-btn_yprop ])
90 cylinder(r= btn_dia/2, h=20);
95 cube(concat(abtn_sz, [ thick[2]*3 ]), center=true);
99 translate([ screen_xbot,
100 (psz[1] - screen_sz[1])/2,
102 cube(concat(screen_sz, [ thick[2]+2 ]));
105 for (x=[ thumb_xbot+thumb_dia/2, psz[0]+10 ])
109 cylinder(r= thumb_dia/2,
115 translate([ (vol_xbot+vol_xtop)/2, 0, psz[2]/2 + vol_zoff ])
116 cube([ vol_xtop-vol_xbot, vol_depth*2, vol_zsz ], center=true);
118 translate([ thick[0], -10, -10 ])
119 cube([ 10, psz[1]+20, psz[2]+20 ]);
121 //translate([-50,-50,10]) cube([100,100,100]);
125 RoundedCube(psz + [1,0,0],
128 if (0) for (m=[0,1]) {
129 translate([0,ym,0]) mirror([0,m,0]) translate([0,-ym,0])
130 translate([-1,-1, psz[2]-rail_zsz])
131 cube([psz[0]+1, rail_ysz+1, rail_zsz+1]);
140 translate([ -vol_xbot, 0,0 ])
141 cube([ 4, 200,200 ], center=true);
147 //RoundedCube(psz, inner_cnr_rad);