chiark / gitweb /
fairphone-case: add TestLidWidthPrint
[reprap-play.git] / fairphone-case.scad
index 978579d14a062334cdfdfb75a73207498e6c27c5..44da902adb85aef76f57a8b47f2e0f4b2fdc29b9 100644 (file)
@@ -18,6 +18,11 @@ case_th_lid = 2.5;
 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_width = 0.10;
+
 keeper_th_z = 0.75;
 keeper_th_x = 0.75;
 keeper_inner_width = 1.75;
@@ -204,6 +209,17 @@ module Case(){ ////toplevel
       linear_extrude(height = 20)
       mirror([0, 1, 0])
       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 ]);
+    }
   }
 }
 
@@ -229,6 +245,16 @@ module TestWidth(){ ////toplevel
   }
 }
 
+module TestLidWidthPrint(){ ////toplevel
+  rotate([0,180.0])
+    intersection(){
+      Lid();
+      translate([-30, -(phone_height - 25), -20])
+       mirror([0, 1, 0])
+       cube([200, 50, 40]);
+    }
+}
+
 module TestCamera(){ ////toplevel
   intersection(){
     Case();