From 8773e744ef77b7f272d2c8af6452451d497db01e Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 27 Apr 2025 18:25:35 +0100 Subject: [PATCH] toolbox-inserts: adjust pitch to 12.7mm Signed-off-by: Ian Jackson --- toolbox-inserts.scad | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/toolbox-inserts.scad b/toolbox-inserts.scad index c30f0ce..adf4065 100644 --- a/toolbox-inserts.scad +++ b/toolbox-inserts.scad @@ -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 -- 2.30.2