chiark / gitweb /
bike-lipo-box: TestWall: replace ad-hoc with S1930_Negative (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 13 Feb 2016 20:12:12 +0000 (20:12 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 13 Feb 2016 20:12:12 +0000 (20:12 +0000)
bike-lipo-box.scad.m4

index b3dd3db..85f6e59 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();
     }
   }    
 }