chiark / gitweb /
adafruit-powerboost: break out PsuMountWindowsNegative
[reprap-play.git] / adafruit-powerboost-common.scad
index acbf33bca1a14d6d1a8d1734a169e359af0d2faa..fd632449084766324aebbdaa8691aa11348e0a4a 100644 (file)
@@ -192,6 +192,11 @@ module PsuLedWindowsPlan(){
   }
 }
 
+module PsuMountWindowsNegative(){
+  linextr(-10, 0.1)
+    PsuLedWindowsPlan();
+}
+
 module PsuMountDemo() { ////toplevel
   ceil = psu_test_ceil;
 
@@ -227,6 +232,8 @@ module PsuMountTest() { ////toplevel
       translate([0, psu_y, psu_z])
        PsuMountPositive();
       difference(){
+
+       // rectangular box with wall
        linextr_x_yz(-psu_mount_outer_sz_x/2,
                     +psu_mount_outer_sz_x/2) {
          difference(){
@@ -235,15 +242,14 @@ module PsuMountTest() { ////toplevel
            rectfromto([ceil,0], 400*[1,1]);
          }
        }
+
        translate([0, psu_y, psu_z]) {
          PsuMountNegative();
        }
       }
     }
-    translate([0, psu_y, psu_z]) {
-      linextr(-10, 0.1)
-       PsuLedWindowsPlan();
-    }
+    translate([0, psu_y, psu_z])
+      PsuMountWindowsNegative();
   }
 }