chiark / gitweb /
fairphone-case: TestLidTopAperturesPrint: make frameish
[reprap-play.git] / fairphone-case.scad
index f7572934dd404f964324320aa1fb1346f527bc46..678ea67cea016a48739b4046521647cdbf232690 100644 (file)
@@ -41,7 +41,7 @@ jack_pos = [ 13.83, 8.485 ];
 jack_dia = 10.64 + .5; // some jack I had lying around
 
 led_pos = [ 13.98, 10.00 ];
-led_aperture = 8;
+led_aperture = 9;
 led_window_ledge = 0.75; // each side
 
 noisecancelmic_pos = [ 19.54, 7.37 ];   // from rhs
@@ -349,7 +349,7 @@ $prp_r10 = prl_r10;
 
 module AdhocMultiprintFrame(phase, z0, zs) {
   // from z0 to z0 + zs*layer
-  extra = phase * 0.65 + 5;
+  extra = phase * (initial_layer_width + multicolour_gap) + 5;
   xextra = extra + -epp4[0];
   xrange = [ 0, phone_width ] + [-1,+1] * xextra;
   yextra = extra + -epp4[0];
@@ -1021,7 +1021,7 @@ module LidWindow(){ ////toplevel
   translate([led_pos[0], -led_pos[1], lpp13[1]])
     mirror([0,0,1])
     cylinder(r= nla_r1, h=nla_t);
-  LidAdhocMultiprintFrame(0, lpp13[1], -1);
+  LidAdhocMultiprintFrame(0);
 }
 
 module LidWindowPrint(){ ////toplevel
@@ -1165,7 +1165,7 @@ module TestSelectFrame(){
 module TestSelectLidFrame(){
   TestSelectFrame();
   translate([led_pos[0], -led_pos[1], -50])
-    cylinder(r= nla_r2+2, h=100);
+    cylinder(r= nla_r2+3, h=100);
 }
 
 module TestFrameCase(){ ////toplevel
@@ -1182,6 +1182,8 @@ module TestFrameCase(){ ////toplevel
 module TestSelectTopApertures(){
   translate([-100, -35, -100])
     cube([400, 100, 200]);
+  LidAdhocMultiprintFrame(0);
+  LidAdhocMultiprintFrame(1);
 }
 
 module TestTopApertures(){ ////toplevel
@@ -1192,6 +1194,21 @@ module TestTopApertures(){ ////toplevel
   }
 }
 
+module TestLidTopAperturesPrint(){ ////toplevel
+  rotate([0,180,0]) intersection(){
+    Lid();
+    TestSelectLidFrame();
+    TestSelectTopApertures();
+  }
+}
+
+module TestLidWindowTopAperturesPrint(){ ////toplevel
+  rotate([0,180,0]) intersection(){
+    LidWindow();
+    TestSelectTopApertures();
+  }
+}
+
 module TestFrameLidPrint(){ ////toplevel
   rotate([0,180,0]) intersection(){
     Lid();