chiark / gitweb /
nook-case: wip, initial attempt
[reprap-play.git] / nook-case.scad
index cbdfade1fd6d26aad5c55181d0ca42f5af9e52e3..dfed77f14f4c45658031236ad8a224bacc63490e 100644 (file)
@@ -2,16 +2,20 @@
 
 include <utils.scad>
 
-nook_th = 8; // xxx
+nook_th = 12.41 + 0.50;
 nook_cnr_rad = 10;
 
 case_th = 2.5;
 ledge_w = 4;
-tape_th = 1.5;
+tape_th = 1.75;
 tape_inside = 2.0;
 
 gap = 0.5 * [1,1];
 
+tape_w = 15;
+
+test_pillar = 4;
+
 // calculated
 
 ledge_h = case_th;
@@ -24,7 +28,7 @@ spp8 = spp9 + nook_th * [0,-1];
 spp7 = spp8 + case_th * [-1,-1];
 
 spp11y = spp1[1] - tape_th;
-spp4y  = 0.5 * (spp0[1] + spp8[1]);
+spp4y  = 0.5 * (spp0[1] + spp7[1]);
 spp3y = spp4y + tape_inside/2;  spp5y = spp4y - tape_inside/2;
 spp2y = spp3y + tape_th;        spp6y = spp5y - tape_th;
 
@@ -74,7 +78,7 @@ module SideTapeCutout() {
   SideTapeCutout1(spp11y, spp1[1] + 1);
 }
 
-module Demo(){
+module Demo(){ ////toplevel
   translate([0,0,-2]) SideMainProfile(); 
   translate([0,0,-2]) color("yellow") TopMainProfile();
   color("red") difference(){
@@ -88,4 +92,20 @@ module Demo(){
   //%SideTapeCutout();
 }
 
-Demo();
+module TestExtrude(){
+  difference(){
+    linextr_y_xz(-test_pillar, tape_w+test_pillar) children(0);
+    linextr_y_xz(           0, tape_w            ) children(1);
+  }
+}
+
+module TestSide(){ ////toplevel
+  TestExtrude() { SideMainProfile(); SideTapeCutout(); }
+}
+
+module TestTop(){ ////toplevel
+  TestExtrude() { TopMainProfile(); TopTapeCutout(); }
+}
+module TestTopPrint(){ ////toplevel
+  rotate([180,0,0]) TestTop();
+}