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

index 11b762b425fbfa236ec96088f97ba037df5a8064..f275da6441bfd308e11e95edcc3d03fc32ec46c1 100644 (file)
@@ -41,6 +41,7 @@ module WallMinkowskiSphere(wall=well_surround_wall) { ////toplevel
 module WellSurround(
   half_height,
   gaps,
+  offset,
   wall=well_surround_wall
 ) {
   // WellSurround(half_height, gaps[
@@ -59,7 +60,7 @@ module WellSurround(
 //    minkowski(){
 //      WallMinkowskiSphere(wall);
 
-    difference(){
+    translate(concat(offset, [0])) difference(){
       linextr(-10, half_height)
        offset($fn=8, r = wall)
        projection(cut=false)
@@ -86,7 +87,7 @@ module DriverHandleHolder() { ////toplevel
   WellSurround(driver_handle_handle_d/2, [
     [ 15, driver_handle_shaft_l - 15 ],
     [ driver_handle_shaft_l + 15, driver_handle_shaft_l + 45 ],
-  ])
+  ], [], offset=[-5, 0])
     DriverHandlePositive();
 }