summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
014cfe3)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
[phone_width, -phone_height] + [-1,+1] * phone_cnr_rad);
}
[phone_width, -phone_height] + [-1,+1] * phone_cnr_rad);
}
-module Struts(z_min, th){
+module Struts(x_start, z_min, th){
// if th is negative, starts at z_min and works towards -ve z
// and object should then be printed other way up
for (i= [1 : 1 : case_struts_count]) {
// if th is negative, starts at z_min and works towards -ve z
// and object should then be printed other way up
for (i= [1 : 1 : case_struts_count]) {
case_struts_solid_below])
linear_extrude(height= abs(th)
-(case_struts_solid_below+case_struts_solid_above))
case_struts_solid_below])
linear_extrude(height= abs(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 ]);
+ rectfromto([ x_start, -0.5 * case_struts_width ],
+ [ phone_width - x_start, +0.5 * case_struts_width ]);
rectfromto(camera_pos_tl, camera_pos_br);
// struts (invisible, because they're buried in the case)
rectfromto(camera_pos_tl, camera_pos_br);
// struts (invisible, because they're buried in the case)
- Struts(epp2i[1] - case_th_bottom, case_th_bottom);
+ Struts(epp2i[0], epp2i[1] - case_th_bottom, case_th_bottom);