-rw-r--r-- | mold.scad | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -3,3 +3,3 @@ module mold( s=1, /* shell thickness */ - h_protrude=5, /* how far to protrude outside horizontally */ + h_protrude=-1, /* how far to protrude outside horizontally, default is size[2] */ v_protrude=10, /* and vertically */ @@ -25,3 +25,4 @@ module mold( gw = 3*s; // guide width, in case I'll want to change it. - module trusion(in) { + h_protrude_ = h_protrude<0 ? size[2] : h_protrude; + module trusion(in,gw=gw,h_protrude=h_protrude_) { translate([-gw/2,0,s+size[2]]) union() { |