// -*- C -*-
phone_height = 146.5 - .80;
-phone_width = 76.75;
+phone_width = 76.75 - .50;
phone_cnr_rad = 6.0;
phone_backside_slope_outer = 1.0; // larger means shallower
camera_pos_tl = [ 7.0, 13.0 ]; // measured from tl corner
-camera_pos_br = [ 24.0, 39.5 ]; // tl/br as seen from back
+camera_pos_br = [ 22.85,37.85]; // tl/br as seen from back
case_th_bottom = 2.5;
case_th_lid = 2.5;
[phone_width, -phone_height] + [-1,+1] * phone_cnr_rad);
}
+module Struts(z_min, th){
+ for (i= [1 : 1 : case_struts_count]) {
+ translate([0,
+ -phone_height * i / (case_struts_count+1),
+ z_min + case_struts_solid_below])
+ linear_extrude(height= th
+ -(case_struts_solid_below+case_struts_solid_above))
+ rectfromto([ epp2i[0], -0.5 * case_struts_width ],
+ [ phone_width - epp2i[0], +0.5 * case_struts_width ]);
+ }
+}
+
module CaseBase(){
AroundEdges(epp3[1], case_th_bottom, 1)
EdgeProfile();
rectfromto(camera_pos_tl, camera_pos_br);
// struts (invisible, because they're buried in the case)
- for (i= [1 : 1 : case_struts_count]) {
- translate([0,
- -phone_height * i / (case_struts_count+1),
- epp2i[1] - case_th_bottom + case_struts_solid_below])
- linear_extrude(height= case_th_bottom
- -(case_struts_solid_below+case_struts_solid_above))
- rectfromto([ epp2i[0], -0.5 * case_struts_width ],
- [ phone_width - epp2i[0], +0.5 * case_struts_width ]);
- }
+ Struts(epp2i[1] - case_th_bottom, case_th_bottom);
}
}