chiark / gitweb /
toolbox-inserts: WellSurround: screws/fixings terminology
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 21 Apr 2025 10:56:24 +0000 (11:56 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 21 Apr 2025 10:56:24 +0000 (11:56 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
toolbox-inserts.scad

index 354260f603c19522cf3ac9e1ddff9c31cc23f593..59f2f8f22b49b803438c6a96f1d931b2dc527617 100644 (file)
@@ -12,7 +12,7 @@ box_edge_width = 10;
 below_plane_z = 4.5;
 
 fixing_pitch = 10;
-screw_depth = 6;
+fixing_depth = 6;
 
 fixing_receptacle_d = 4 + 2.5 + 2.5;
 
@@ -42,16 +42,16 @@ module WallMinkowskiSphere(wall=well_surround_wall) { ////toplevel
   sphere($fn=8, r=wall/2);
 }
 
-// AtScrewPositions([ screw, screw, ...]) ScrewItem();
+// AtFixingPositions([ screw, screw, ...]) ScrewItem();
 //
 // Each screw is [x,y] or [x,y, depth]
 // where x and y are the position in fixing stride
 //
 // ScrewItem should use $depth
-module AtScrewPositions(screws) {
+module AtFixingPositions(screws) {
   for (screw = screws) {
 echo("SCREW", screw);
-    $screw_depth = is_undef(screw[2]) ? screw_depth : screw[2];
+    $fixing_depth = is_undef(screw[2]) ? fixing_depth : screw[2];
     translate(fixing_pitch * [screw[0], screw[1], 0])
       children(0);
   }
@@ -71,9 +71,9 @@ module WellSurround(
   gaps,
   // screw locations in stride units, [ [ screw, ...], ... ]
   // in hull groups (screw receptacles are hulled within each group)
-  // screw as for AtScrewPositions
-  screws,
-  // offset=[x,y] moves the whole thing by that amount, but not the screws
+  // screw as for AtFixingPositions
+  fixings,
+  // offset=[x,y] moves the whole thing by that amount, but not the fixings
   offset,
   wall=well_surround_wall
 ) {
@@ -90,15 +90,15 @@ module WellSurround(
            children(0);
        }
 
-       for (hull_group = screws) {
+       for (hull_group = fixings) {
  echo("HULL GROUP", hull_group);
          hull() {
-           AtScrewPositions(hull_group) {
-             linextr(0, $screw_depth)
+           AtFixingPositions(hull_group) {
+             linextr(0, $fixing_depth)
                circle(r= fixing_receptacle_d/2);
            }
          }
-         AtScrewPositions(hull_group)
+         AtFixingPositions(hull_group)
            %linextr(0, 30) circle(r= 0.5, $fn=4);
        }
       }