From: Ian Jackson Date: Mon, 21 Apr 2025 10:56:24 +0000 (+0100) Subject: toolbox-inserts: WellSurround: screws/fixings terminology X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=5cf40ccdfc2a36fb83543aa38f168c4ca72359b7;p=reprap-play.git toolbox-inserts: WellSurround: screws/fixings terminology Signed-off-by: Ian Jackson --- diff --git a/toolbox-inserts.scad b/toolbox-inserts.scad index 354260f..59f2f8f 100644 --- a/toolbox-inserts.scad +++ b/toolbox-inserts.scad @@ -12,7 +12,7 @@ box_edge_width = 10; below_plane_z = 4.5; fixing_pitch = 10; -screw_depth = 6; +fixing_depth = 6; fixing_receptacle_d = 4 + 2.5 + 2.5; @@ -42,16 +42,16 @@ module WallMinkowskiSphere(wall=well_surround_wall) { ////toplevel sphere($fn=8, r=wall/2); } -// AtScrewPositions([ screw, screw, ...]) ScrewItem(); +// AtFixingPositions([ screw, screw, ...]) ScrewItem(); // // Each screw is [x,y] or [x,y, depth] // where x and y are the position in fixing stride // // ScrewItem should use $depth -module AtScrewPositions(screws) { +module AtFixingPositions(screws) { for (screw = screws) { echo("SCREW", screw); - $screw_depth = is_undef(screw[2]) ? screw_depth : screw[2]; + $fixing_depth = is_undef(screw[2]) ? fixing_depth : screw[2]; translate(fixing_pitch * [screw[0], screw[1], 0]) children(0); } @@ -71,9 +71,9 @@ module WellSurround( gaps, // screw locations in stride units, [ [ screw, ...], ... ] // in hull groups (screw receptacles are hulled within each group) - // screw as for AtScrewPositions - screws, - // offset=[x,y] moves the whole thing by that amount, but not the screws + // screw as for AtFixingPositions + fixings, + // offset=[x,y] moves the whole thing by that amount, but not the fixings offset, wall=well_surround_wall ) { @@ -90,15 +90,15 @@ module WellSurround( children(0); } - for (hull_group = screws) { + for (hull_group = fixings) { echo("HULL GROUP", hull_group); hull() { - AtScrewPositions(hull_group) { - linextr(0, $screw_depth) + AtFixingPositions(hull_group) { + linextr(0, $fixing_depth) circle(r= fixing_receptacle_d/2); } } - AtScrewPositions(hull_group) + AtFixingPositions(hull_group) %linextr(0, 30) circle(r= 0.5, $fn=4); } }