chiark / gitweb /
toolbox-inserts: adjust pitch to 12.7mm
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 27 Apr 2025 17:25:35 +0000 (18:25 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 27 Apr 2025 17:39:32 +0000 (18:39 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
toolbox-inserts.scad

index c30f0cef3605a70114baac651341f1c68261615f..adf4065843f46484449ce1b78af59d99ef900eda 100644 (file)
@@ -15,7 +15,7 @@ fixing_head_th = 2.6;
 fixing_head_d = 7.82 + 0.25;
 plane_min_th = 2;
 
-fixing_pitch = 10;
+fixing_pitch = 12.7;
 fixing_depth = 5.0;
 fixing_nom_d = 4;
 fixing_thread_d = fixing_nom_d + 0.375;
@@ -168,7 +168,7 @@ module DriverHandleHolder() { ////toplevel
     [ 15, driver_handle_shaft_l - 15 ],
     [ driver_handle_shaft_l + 15, driver_handle_shaft_l + 45 ],
   ], [
-    for (x = [0: 2: 14])
+    for (x = [0: 2: 12])
     for (y = [-0.5, +0.5])
     [ [ x, y ] ]
   ], offset=[-5, 0])
@@ -213,12 +213,12 @@ module BoxBottomModel() { ////toplevel
 }
 
 module AtFixings() {
-  n_x = floor( box_x / fixing_pitch        / 2);
+  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 (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) ) > 1.25)
       translate(fixing_pitch * [xi, yi, 0]) {
        children();
       }
@@ -320,7 +320,7 @@ module OdAt(x,y) {
 module OverallDemo() { ////toplevel
   color("grey") BoxBottomModel();
   color("blue") FullPlate();
-  color("red") OdAt(-5.5,-6) DriverHandleHolder();
+  color("red") OdAt(-6, -4.5) DriverHandleHolder();
 }
 
 module OverallDemoLidded() { ////toplevel