chiark / gitweb /
fairphone-case: Struts: split up a translate (nfc)
[reprap-play.git] / fairphone-case.scad
index 726bdc63846a8047b0b1d3edc652a6d7b5ac3b0f..5cd591e09fd9aec157e427b4037b50613d66615b 100644 (file)
@@ -21,8 +21,8 @@ case_th_side = 2;
 case_th_lip = 1.2;
 
 case_struts_count = 6;
-case_struts_solid_below = 0.75;
-case_struts_solid_above = 1.00;
+case_struts_solid_below = 1.00;
+case_struts_solid_above = 0.75;
 case_struts_width = 0.10;
 
 keeper_th_z = 0.75;
@@ -248,8 +248,11 @@ module AroundEdges(fill_zstart, fill_th, fill_downwards=0){
 module Struts(z_min, th){
   for (i= [1 : 1 : case_struts_count]) {
     translate([0,
+              0,
+              z_min])
+      translate([0,
               -phone_height * i / (case_struts_count+1),
-              z_min + case_struts_solid_below])
+              case_struts_solid_below])
       linear_extrude(height= th
                     -(case_struts_solid_below+case_struts_solid_above))
       rectfromto([               epp2i[0], -0.5 * case_struts_width ],