chiark / gitweb /
toolbox-inserts: break out FixingSurround
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 22 Apr 2025 18:18:03 +0000 (19:18 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 22 Apr 2025 18:18:03 +0000 (19:18 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
toolbox-inserts.scad

index 187aca3d2eb591f70ad32bb5d87a097736e3ee06..f92d4c16cad44c275e0ba093ca980fe03cd42e10 100644 (file)
@@ -68,6 +68,11 @@ module AtFixingPositions(screws) {
   }
 }
 
+module FixingSurround() {
+  linextr(0, $fixing_depth)
+    circle(r= fixing_receptacle_d/2);
+}
+
 // WellSurround(...) {
 //     SomethingPositive();
 // }
@@ -104,10 +109,7 @@ module WellSurround(
 
        for (hull_group = fixings) {
          hull() {
-           AtFixingPositions(hull_group) {
-             linextr(0, $fixing_depth)
-               circle(r= fixing_receptacle_d/2);
-           }
+           AtFixingPositions(hull_group) FixingSurround();
          }
          AtFixingPositions(hull_group)
            %union() {