From 5dff2bc54d97d2792efd114a4823de4163a8a473 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Mon, 27 Jun 2016 20:49:16 +0000 Subject: mold: default value for horizontal protrusion. --- diff --git a/mold.scad b/mold.scad index d5354b0..e4f93fc 100644 --- a/mold.scad +++ b/mold.scad @@ -1,7 +1,7 @@ module mold( size, /* mold inner size */ 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 */ l_intrude=0, /* how far to intrude on the left */ r_intrude=0, /* how far to intrude on the right */ @@ -23,7 +23,8 @@ 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() { hull() { translate([0,0,in]) -- cgit v0.9.0.2