chiark / gitweb /
bike-lipo-box: TestWall: fix error introduced when wallthick was reduced
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 13 Feb 2016 20:14:56 +0000 (20:14 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 13 Feb 2016 20:14:56 +0000 (20:14 +0000)
bike-lipo-box.scad.m4

index 85f6e59..a297550 100644 (file)
@@ -36,10 +36,7 @@ module S1930_Negative(){
 }
 
 module TestWall(){ ////toplevel
-  sw_ctr = [25, 0, 25];
-  sw_ctr_new = [25,
-               wallthick + 0.5, // xxx compatibility bug
-               25];
+  sw_ctr = [25, wallthick, 25];
 
   rotate([0,0,-90]){
     difference(){
@@ -59,12 +56,12 @@ module TestWall(){ ////toplevel
   difference(){
     union(){
       cube([50, wallthick, 50]);
-      translate(sw_ctr_new)
+      translate(sw_ctr)
        rotate([0,0,90])
        S1930_Positive();
     }
 
-    translate(sw_ctr_new) {
+    translate(sw_ctr) {
       rotate([0,0,90])
        S1930_Negative();
     }