chiark / gitweb /
bike-lipo-box: TestWall: replace ad-hoc with S1930_Negative (nfc)
[reprap-play.git] / bike-lipo-box.scad.m4
index b3dd3db45b7522aaf524ac468fec743d54e48f7e..85f6e5946807e2a3e8f206c0d374f58a63a0e790 100644 (file)
@@ -27,6 +27,13 @@ module S1930_Positive(){
          s1930_x_outer + s1930_around,
          s1930_y_outer + s1930_around], center=true);
 }
+module S1930_Negative(){
+  cube([60, s1930_x, s1930_y],
+       center=true);
+  translate([1, 0,0])
+    cube([s1930_recess*2+2, s1930_x_outer, s1930_y_outer],
+        center=true);
+}
 
 module TestWall(){ ////toplevel
   sw_ctr = [25, 0, 25];
@@ -57,12 +64,9 @@ module TestWall(){ ////toplevel
        S1930_Positive();
     }
 
-    translate(sw_ctr) {
-      rotate([90,0,0]) {
-       cube([s1930_x, s1930_y, 10], center=true);
-       translate([0,0, -5])
-         cube([s1930_x_outer, s1930_y_outer, 10], center=true);
-      }
+    translate(sw_ctr_new) {
+      rotate([0,0,90])
+       S1930_Negative();
     }
   }    
 }