From: Ian Jackson Date: Thu, 2 Dec 2021 20:47:39 +0000 (+0000) Subject: adafruit-powerboost: reorganise layerframes X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=57ae308e398c3120d7277c0cfd3cfc87da3be789;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 7e2f556..c948914 100644 --- a/adafruit-powerboost-common.scad +++ b/adafruit-powerboost-common.scad @@ -192,20 +192,22 @@ module PsuLedWindowsPlan(){ } } -module PsuMountWindowsNegative(ceil){ - linextr(-10, 0.1) - PsuLedWindowsPlan(); - +module PsuFirstLayerNegative(ceil){ translate([0, 0, -psu_z - ceil]) linextr(-1, psu_initial_layer_thick) offset(delta=psu_window_ledge + psu_multicolour_gap) + children(); +} + +module PsuMountWindowsNegative(ceil){ + linextr(-10, 0.1) + PsuLedWindowsPlan(); + PsuFirstLayerNegative(ceil) PsuLedWindowsPlan(); } module PsuLedLegendsNegative(ceil){ - translate([0, 0, -psu_z - ceil]) - linextr(-1, psu_initial_layer_thick) - offset(delta=psu_multicolour_gap) + PsuFirstLayerNegative(ceil) PsuLedLegendsPlan(); }