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

index b3fde408ed9aed489401b97bad4295df886f5397..48041ce6b3401d72cb53403f6e6bb8cef27be948 100644 (file)
@@ -50,7 +50,8 @@ module WellSurround(
   half_height,
   // gaps for picking up object, [ [ x_min, x_max ], ... ]
   gaps,
-  // screw locations in stride units, [ [screw_xu, screw_yu], ... ]
+  // screw locations in stride units, [ [ [screw_xu, screw_yu], ...], ... ]
+  // in hull groups (screw receptacles are hulled within each group)
   screws,
   // offset=[x,y] moves the whole thing by that amount, but not the screws
   offset,
@@ -62,10 +63,15 @@ module WellSurround(
 //      WallMinkowskiSphere(wall);
 
     translate(concat(offset, [0])) difference(){
-      linextr(-10, half_height)
-       offset($fn=8, r = wall)
-       projection(cut=false)
-       children(0);
+      union(){
+       linextr(-10, half_height){
+         offset($fn=8, r = wall)
+           projection(cut=false)
+           children(0);
+       }
+
+       
+      }
 
 //     minkowski(){
 //       WallMinkowskiSphere(wall);