chiark / gitweb /
toolbox-inserts: bits: new new fixings, missing
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 15 Oct 2025 23:01:30 +0000 (00:01 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 15 Oct 2025 23:01:30 +0000 (00:01 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
toolbox-inserts.scad

index 0f361b7f77ba3a4bf0eace82770074753d8e7fb9..42f21a46be793205ba80b180a8028bd16fa7754f 100644 (file)
@@ -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);
+      }
     }
   }
 }