below_plane_z = 4.5;
fixing_pitch = 10;
-screw_depth = 6;
+fixing_depth = 6;
fixing_receptacle_d = 4 + 2.5 + 2.5;
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);
}
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
) {
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);
}
}