summaryrefslogtreecommitdiff
path: root/pushfittery.scad
authorMichael Krelin <hacker@klever.net>2018-07-31 19:38:01 (UTC)
committer Michael Krelin <hacker@klever.net>2018-07-31 19:38:01 (UTC)
commit2489b5446f56dbabbca9b4ea9f40870c7f4f69e6 (patch) (unidiff)
treeb1e539c512f20c352c99203541b13b8776c7f873 /pushfittery.scad
parent04f03386761d24bf28759d2dbefa7c9bd10a3726 (diff)
downloadextrudery-2489b5446f56dbabbca9b4ea9f40870c7f4f69e6.zip
extrudery-2489b5446f56dbabbca9b4ea9f40870c7f4f69e6.tar.gz
extrudery-2489b5446f56dbabbca9b4ea9f40870c7f4f69e6.tar.bz2
pushfittery: don't be too epsilony
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
@@ -9,3 +9,3 @@ function pf_h(pf) = pf_(pf,"h");
9module pushfit(pf,draft=draft) { 9module pushfit(pf,draft=draft) {
10 fnd = 2*PI; epsilon=.01; 10 fnd = 2*PI;
11 type = pf_(pf,"type"); 11 type = pf_(pf,"type");
@@ -16,4 +16,4 @@ module pushfit(pf,draft=draft) {
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+1);
18 else english_thread(diameter=d,threads_per_inch=tpi,length=(h+epsilon)/minch,internal=true); 18 else english_thread(diameter=d,threads_per_inch=tpi,length=(h+1)/minch,internal=true);
19 slitl = d*minch+layer_height; 19 slitl = d*minch+layer_height;
@@ -21,3 +21,3 @@ module pushfit(pf,draft=draft) {
21 echo(slitw,slitl); 21 echo(slitw,slitl);
22 translate([-slitw/2,-slitl/2,0]) cube([slitw,slitl,h+epsilon]); 22 translate([-slitw/2,-slitl/2,0]) cube([slitw,slitl,h+1]);
23 }else if(type=="embedded") { 23 }else if(type=="embedded") {
@@ -27,3 +27,3 @@ module pushfit(pf,draft=draft) {
27 $fn = d*fnd; 27 $fn = d*fnd;
28 translate([0,0,h-h_ring]) cylinder(d=d,h=h_ring+epsilon); 28 translate([0,0,h-h_ring]) cylinder(d=d,h=h_ring+1);
29 cylinder(d=d_insert,h=h); 29 cylinder(d=d_insert,h=h);