From: Ian Jackson Date: Fri, 9 May 2025 17:17:23 +0000 (+0100) Subject: toolbox-inserts: WellSurround: gap adjustment X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=146c97950c2c8e60851fe5ded9c13bb642522a1d;p=reprap-play.git toolbox-inserts: WellSurround: gap adjustment Signed-off-by: Ian Jackson --- diff --git a/toolbox-inserts.scad b/toolbox-inserts.scad index f3ef42e..b63fe6f 100644 --- a/toolbox-inserts.scad +++ b/toolbox-inserts.scad @@ -109,9 +109,10 @@ function fixing_positions_2row(xmin, xmax) = [ //---------- wells (relating to the -ve space in holders) ---------- -module WellSurroundGapElevation(z_bottom, z_edge, z_wayhigh, gap) { +module WellSurroundGapElevation(z_bottom_def, z_edge, z_wayhigh, gap) { x_min = gap[0]; x_max = gap[1]; + z_bottom = is_undef(gap[2]) ? z_bottom_def : z_edge + gap[2]; rectfromto([ x_min, z_bottom ], [ x_max, z_wayhigh ]); @@ -136,6 +137,7 @@ module WellSurround( // Amount by which the object protrudes above z==0 half_height, // gaps for picking up object, [ [ x_min, x_max ], ... ] + // also allowed: [ [ x_min, x_max, z_depth ] ] gaps, // screw locations in stride units, [ [ screw, ...], ... ] // in hull groups (screw receptacles are hulled within each group) @@ -450,7 +452,7 @@ module RatchetHandleWell() { ////toplevel module RatchetHandleHolder() { ////toplevel WellSurround(ratchet_handle_nom_depth/2, [ - [ -30, -10 ], + [ -30, -10, -7 ], [ 10, 40 ], ], fixing_positions_2row(-7, 4), offset=[-5, 0]) RatchetHandleWell();