From 5e7d05583f56c91a78404f3285c444eed22feebe Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 16 Oct 2025 00:01:30 +0100 Subject: [PATCH] toolbox-inserts: bits: new new fixings, missing Signed-off-by: Ian Jackson --- toolbox-inserts.scad | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/toolbox-inserts.scad b/toolbox-inserts.scad index 0f361b7..42f21a4 100644 --- a/toolbox-inserts.scad +++ b/toolbox-inserts.scad @@ -82,6 +82,7 @@ bit_h = 10; bit_fixing_depth = 6.0; bit_row_lengths = [11, 10, 11, 8]; +bit_bits_missing = [ [1, 0], [9, 0] ]; bit_holder_fixings_xl = 7; bit_holder_offset = fixing_pitch * [+0.0, -0.0]; @@ -630,9 +631,16 @@ module BitAtBits() { for (y = [0: ny-1]) { nx = bit_row_lengths[y]; for (x = [0: nx-1]) { - xy = [x, y] - [nx-1, ny-1]/2; - translate([xy[0] * bit_pitch_x, xy[1] * bit_pitch_y]) - children(0); + missing_found = [ + for (m = bit_bits_missing) + if ([x, y] == m) + 1 + ]; + if (len(missing_found) == 0) { + xy = [x, y] - [nx-1, ny-1]/2; + translate([xy[0] * bit_pitch_x, xy[1] * bit_pitch_y]) + children(0); + } } } } -- 2.30.2