From: Ian Jackson Date: Thu, 2 Dec 2021 20:46:50 +0000 (+0000) Subject: adafruit-powerboost: reorganise layerframes X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=fd91300387a81d93b3d681aeea9c3d10396e9585;p=reprap-play.git adafruit-powerboost: reorganise layerframes Signed-off-by: Ian Jackson --- diff --git a/adafruit-powerboost-common.scad b/adafruit-powerboost-common.scad index 7b5536e..7e2f556 100644 --- a/adafruit-powerboost-common.scad +++ b/adafruit-powerboost-common.scad @@ -195,12 +195,20 @@ module PsuLedWindowsPlan(){ 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 PsuLedLegendsNegative(ceil){ + translate([0, 0, -psu_z - ceil]) + linextr(-1, psu_initial_layer_thick) + offset(delta=psu_multicolour_gap) + PsuLedLegendsPlan(); +} + module PsuMountDemo() { ////toplevel ceil = psu_test_ceil; @@ -252,14 +260,9 @@ module PsuMountTest() { ////toplevel } } } - translate([0, psu_y, psu_z]) + translate([0, psu_y, psu_z]) { PsuMountWindowsNegative(ceil); - - translate([0, psu_y, -ceil]) { - linextr(-1, psu_initial_layer_thick) { - offset(delta=psu_multicolour_gap) - PsuLedLegendsPlan(); - } + PsuLedLegendsNegative(ceil); } } }