summaryrefslogtreecommitdiff
path: root/pushfittery.scad
Side-by-side diff
Diffstat (limited to 'pushfittery.scad') (more/less context) (show whitespace changes)
-rw-r--r--pushfittery.scad10
1 files changed, 5 insertions, 5 deletions
diff --git a/pushfittery.scad b/pushfittery.scad
index fedf2de..c198828 100644
--- a/pushfittery.scad
+++ b/pushfittery.scad
@@ -8,5 +8,5 @@ function pf_d(pf) = pf_(pf,"d");
function pf_h(pf) = pf_(pf,"h");
module pushfit(pf,draft=draft) {
- fnd = 2*PI; epsilon=.01;
+ fnd = 2*PI;
type = pf_(pf,"type");
h = pf_h(pf);
@@ -15,10 +15,10 @@ module pushfit(pf,draft=draft) {
d = (pf_d(pf) + pf_(pf,"d_tolerance"))/minch;
tpi = pf_(pf,"tpi");
- if(draft) cylinder(d=d*minch,h=h+epsilon);
- else english_thread(diameter=d,threads_per_inch=tpi,length=(h+epsilon)/minch,internal=true);
+ if(draft) cylinder(d=d*minch,h=h+1);
+ else english_thread(diameter=d,threads_per_inch=tpi,length=(h+1)/minch,internal=true);
slitl = d*minch+layer_height;
slitw = 0.8*d*minch/2;
echo(slitw,slitl);
- translate([-slitw/2,-slitl/2,0]) cube([slitw,slitl,h+epsilon]);
+ translate([-slitw/2,-slitl/2,0]) cube([slitw,slitl,h+1]);
}else if(type=="embedded") {
d = pf_d(pf);
@@ -26,5 +26,5 @@ module pushfit(pf,draft=draft) {
d_insert = pf_(pf,"d_insert");
$fn = d*fnd;
- translate([0,0,h-h_ring]) cylinder(d=d,h=h_ring+epsilon);
+ translate([0,0,h-h_ring]) cylinder(d=d,h=h_ring+1);
cylinder(d=d_insert,h=h);
}else if(type=="embeddest") {