-rw-r--r-- | pushfittery.scad | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pushfittery.scad b/pushfittery.scad index 6b6ec2e..fedf2de 100644 --- a/pushfittery.scad +++ b/pushfittery.scad @@ -33,12 +33,14 @@ module pushfit(pf,draft=draft) { h_legspace = pf_(pf,"h_legspace"); ch = pf_(pf,"ch"); $fn = d*fnd; cylinder(d=id,h=h+1); cylinder(d=d,h=h_legspace); dd = (d-id)/2; translate([0,0,h_legspace-epsilon]) cylinder(d1=d,d2=id-2*epsilon,h=dd+epsilon); translate([0,0,h-ch-epsilon]) cylinder(d1=id-2*epsilon,d2=id+2*ch+2,h=ch+epsilon+1); } }//pushfit module + +function pf_byname(d,n) = d[search([n],d)[0]][1]; |