[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);
}
}