From 9c17ffe832c1c6fdadd254dbb5619672455c96fa Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 20 Apr 2025 19:44:05 +0100 Subject: [PATCH] toolbox-inserts: wip gaps Signed-off-by: Ian Jackson --- toolbox-inserts.scad | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/toolbox-inserts.scad b/toolbox-inserts.scad index dc7651b..579aa6a 100644 --- a/toolbox-inserts.scad +++ b/toolbox-inserts.scad @@ -27,8 +27,11 @@ module WallMinkowskiSphere(wall=well_surround_wall) { ////toplevel sphere($fn=8, r=wall/2); } -module WellSurround(half_height, wall=well_surround_wall) { - // WellSurround(half_height) { +module WellSurround(half_height, gaps, wall=well_surround_wall) { + // WellSurround(half_height, gaps[ + // [ x_min, x_max ], + // ... + // ]) { // SomethingPositive(); // } // @@ -42,13 +45,10 @@ module WellSurround(half_height, wall=well_surround_wall) { WallMinkowskiSphere(wall); difference(){ - union(){ - - linextr(-10, half_height - wall/2) - offset($fn=8, r = wall/2) - projection(cut=false) - children(0); - } + linextr(-10, half_height - wall/2) + offset($fn=8, r = wall/2) + projection(cut=false) + children(0); minkowski(){ WallMinkowskiSphere(wall); @@ -56,12 +56,19 @@ module WellSurround(half_height, wall=well_surround_wall) { children(0); } } + + for (gap=gaps) { + linextr_x_yz(gap[0] + wall/2, gap[1] - wall/2) + rectfromto([ -100, -wall/2 ], [ 100,100 ]); + } } } } } module DriverHandleHolder() { ////toplevel - WellSurround(driver_handle_handle_d/2) + WellSurround(driver_handle_handle_d/2, [ + [ driver_handle_shaft_l, driver_handle_shaft_l + 50 ], + ]) DriverHandlePositive(); } -- 2.30.2