-rw-r--r-- | pushfittery.scad | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pushfittery.scad b/pushfittery.scad index ee3bbd0..6b6ec2e 100644 --- a/pushfittery.scad +++ b/pushfittery.scad | |||
@@ -1,4 +1,4 @@ | |||
1 | layer_height=.2; | 1 | layer_height=.2; epsilon=.01; |
2 | draft = true; | 2 | draft = true; |
3 | 3 | ||
4 | use <threads.scad>; | 4 | use <threads.scad>; |
@@ -15,7 +15,7 @@ module pushfit(pf,draft=draft) { | |||
15 | d = (pf_d(pf) + pf_(pf,"d_tolerance"))/minch; | 15 | d = (pf_d(pf) + pf_(pf,"d_tolerance"))/minch; |
16 | tpi = pf_(pf,"tpi"); | 16 | tpi = pf_(pf,"tpi"); |
17 | if(draft) cylinder(d=d*minch,h=h+epsilon); | 17 | if(draft) cylinder(d=d*minch,h=h+epsilon); |
18 | else english_thread(diameter=d,threads_per_inch=tpi,length=h/minch+epsilon,internal=true); | 18 | else english_thread(diameter=d,threads_per_inch=tpi,length=(h+epsilon)/minch,internal=true); |
19 | slitl = d*minch+layer_height; | 19 | slitl = d*minch+layer_height; |
20 | slitw = 0.8*d*minch/2; | 20 | slitw = 0.8*d*minch/2; |
21 | echo(slitw,slitl); | 21 | echo(slitw,slitl); |