From: Ian Jackson Date: Sun, 27 Apr 2025 17:41:10 +0000 (+0100) Subject: toolbox-inserts: shuffle so cut is between hole lines (prep) X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=473b96861ecce7ba176c5e549efd74facbdfdf76;p=reprap-play.git toolbox-inserts: shuffle so cut is between hole lines (prep) Signed-off-by: Ian Jackson --- diff --git a/toolbox-inserts.scad b/toolbox-inserts.scad index adf4065..8b5a298 100644 --- a/toolbox-inserts.scad +++ b/toolbox-inserts.scad @@ -216,7 +216,10 @@ module AtFixings() { n_x = floor((box_x / fixing_pitch - 1.0) / 2); n_y = floor((box_y / fixing_pitch - 1.0) / 2); - for (xi=[-n_x : n_x]) + for (xi=[ + for (xi= [-n_x : n_x]) + xi + ]) for (yi=[-n_y : n_y]) // if (( n_y - abs(yi) ) + ( n_x - abs(xi) ) > 1.25) translate(fixing_pitch * [xi, yi, 0]) {