chiark / gitweb /
adafruit-powerboost: make PsuMountWindowsNegative have window ledges
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 2 Dec 2021 20:40:38 +0000 (20:40 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 2 Dec 2021 20:40:38 +0000 (20:40 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
adafruit-powerboost-common.scad

index b38753aa7d75aaab4434de12fd522d6ca3573882..505e47247dab9824cc70e814915dc1b142d294a7 100644 (file)
@@ -192,9 +192,13 @@ module PsuLedWindowsPlan(){
   }
 }
 
-module PsuMountWindowsNegative(){
+module PsuMountWindowsNegative(ceil){
   linextr(-10, 0.1)
     PsuLedWindowsPlan();
+  translate([0, 0, -psu_z - ceil])
+    linextr(-1, psu_initial_layer_thick)
+    offset(delta=psu_window_ledge + psu_multicolour_gap)
+    PsuLedWindowsPlan();
 }
 
 module PsuMountDemo() { ////toplevel
@@ -249,7 +253,7 @@ module PsuMountTest() { ////toplevel
       }
     }
     translate([0, psu_y, psu_z])
-      PsuMountWindowsNegative();
+      PsuMountWindowsNegative(ceil);
   }
 }
 
@@ -289,8 +293,6 @@ module PsuMountTestFullMain() { ////toplevel
 
     translate([0, psu_y, 0]) {
       linextr(-1, psu_initial_layer_thick) {
-       offset(delta=psu_window_ledge + psu_multicolour_gap)
-         PsuLedWindowsPlan();
        offset(delta=psu_multicolour_gap)
          PsuLedLegendsPlan();
       }