From a7bc7a093a74094c2536223d9809db33d1129faa Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 9 May 2025 17:10:26 +0100 Subject: [PATCH] toolbox-inserts: break out fixing_positions_2row Signed-off-by: Ian Jackson --- toolbox-inserts.scad | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/toolbox-inserts.scad b/toolbox-inserts.scad index df375b0..de8408b 100644 --- a/toolbox-inserts.scad +++ b/toolbox-inserts.scad @@ -94,6 +94,12 @@ module FixingSurround() { circle(r= fixing_receptacle_d/2); } +function fixing_positions_2row(xmin, xmax) = [ + for (x = [xmin: xmax]) + for (y = [-0.5, +0.5]) + [ [ x, y ] ] +]; + //---------- wells (relating to the -ve space in holders) ---------- module WellSurroundGapElevation(z_bottom, z_edge, z_wayhigh, gap) { @@ -346,11 +352,7 @@ module DriverHandleHolder() { ////toplevel WellSurround(driver_handle_handle_d/2, [ [ 15, driver_handle_shaft_l - 15 ], [ driver_handle_shaft_l + 15, driver_handle_shaft_l + 45 ], - ], [ - for (x = [0: 11]) - for (y = [-0.5, +0.5]) - [ [ x, y ] ] - ], offset=[-5, 0]) + ], fixing_positions_2row(0, 11), offset=[-5, 0]) DriverHandlePositive(); } -- 2.30.2