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

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