chiark / gitweb /
toolbox-inserts: shuffle so cut is between hole lines
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 27 Apr 2025 17:43:09 +0000 (18:43 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 27 Apr 2025 17:43:09 +0000 (18:43 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
toolbox-inserts.scad

index 8b5a298076a3f2c8db244acde0f85cd0fd35ad94..0123c8dcaa1c9e0562b489cc0daaafbb3c9c949e 100644 (file)
@@ -217,11 +217,11 @@ module AtFixings() {
   n_y = floor((box_y / fixing_pitch - 1.0) / 2);
 
   for (xi=[
-        for (xi= [-n_x : n_x])
-        xi
+        for (xi= [-n_x : n_x + 1])
+        xi - 0.5
   ])
     for (yi=[-n_y : n_y])
-//      if (( n_y - abs(yi) ) + ( n_x - abs(xi) ) > 1.25)
+      if (( n_y - abs(yi) ) + ( n_x - abs(xi) ) > 0.25)
       translate(fixing_pitch * [xi, yi, 0]) {
        children();
       }
@@ -323,7 +323,7 @@ module OdAt(x,y) {
 module OverallDemo() { ////toplevel
   color("grey") BoxBottomModel();
   color("blue") FullPlate();
-  color("red") OdAt(-6, -4.5) DriverHandleHolder();
+  color("red") OdAt(-5.5, -4.5) DriverHandleHolder();
 }
 
 module OverallDemoLidded() { ////toplevel