chiark / gitweb /
toolbox-inserts: shuffle so middle is a hole line (simplify)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 27 Apr 2025 17:18:45 +0000 (18:18 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 27 Apr 2025 17:39:27 +0000 (18:39 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
toolbox-inserts.scad

index 90d133e33cc4c507bde34c321111831dc82726bf..c30f0cef3605a70114baac651341f1c68261615f 100644 (file)
@@ -217,9 +217,7 @@ module AtFixings() {
   n_y = floor((box_y / fixing_pitch - 1.0) / 2);
 
   for (xi=[-n_x : n_x])
-    for (yi=[
-            for (yi = [-n_y : n_y]) yi
-            ])
+    for (yi=[-n_y : n_y])
       if (( n_y - abs(yi) ) + ( n_x - abs(xi) ) > 1.25)
       translate(fixing_pitch * [xi, yi, 0]) {
        children();