author | Michael Krelin <hacker@klever.net> | 2016-06-11 17:57:11 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2016-06-11 17:57:11 (UTC) |
commit | 2d09f1c09a64adab3a756e5d7108a2138682a2f3 (patch) (side-by-side diff) | |
tree | f4afe1231466eb6fffbb7d8409c9fbbb5c0f34ba | |
parent | 4f322c6a7e2c5566ab90f17f010b1c5014ac4cd4 (diff) | |
download | fanductory-2d09f1c09a64adab3a756e5d7108a2138682a2f3.zip fanductory-2d09f1c09a64adab3a756e5d7108a2138682a2f3.tar.gz fanductory-2d09f1c09a64adab3a756e5d7108a2138682a2f3.tar.bz2 |
fix protrusions below the sea level
-rw-r--r-- | fanduct.scad | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fanduct.scad b/fanduct.scad index 7a9e205..3e2a15e 100644 --- a/fanduct.scad +++ b/fanduct.scad @@ -88,49 +88,49 @@ module fanduct(type=type,ductshape=ductshape) { module output(what,type=type) { module guideline(xyxy) { module pin(xy) { translate([xy[0],xy[1],0]) cylinder(d=2*extrusion_width,h=2*fanduct_shell+inlet_h,$fn=6); } xyxyxy=concat(xyxy,[[0,0]]); for(i=[0:1:len(xyxyxy)-2]) hull() for(j=[i,i+1]) pin(xyxyxy[j]); } module circus(what) { if(what=="in") { difference() { rotate_extrude($fn=smooth_f) polygon([ [0,-fanduct_elevation+fanduct_blowtarget+epsilon], [fanduct_ir+fanduct_shell,fanduct_shell+fanduct_h/2], [fanduct_ir+fanduct_shell+fanduct_w/2,0], [0,-fanduct_elevation+fanduct_blowtarget-epsilon]]); translate([0,0,-1]) cylinder(r=hotend_clearance,h=fanduct_h+2*fanduct_shell+2,$fn=smooth_f); mirror([0,0,1]) translate([0,0,-epsilon]) - cylinder(r=fanduct_ir+fanduct_shell+1,h=fanduct_elevation+.1+2); + cylinder(r=fanduct_ir+2*fanduct_shell+fanduct_w+1,h=fanduct_elevation+.1+2); } }else if(what=="out") { rotate_extrude($fn=smooth_f) polygon([ [0,-fanduct_elevation+fanduct_blowtarget+epsilon], [fanduct_ir+fanduct_shell+1,fanduct_h/2], [fanduct_ir+fanduct_w/2+fanduct_shell+1,fanduct_shell], [0,-fanduct_elevation+fanduct_blowtarget-epsilon]]); }else if(what=="airguides") { inr = fanduct_ir+fanduct_shell; our = inr+fanduct_w; union() { for(my=[0,1]) mirror([0,my,0]) { guideline([ [-our,inlet_w/6], [-inr*sin(60),inr*cos(60)] ]); a0=30; as=15; a1=180; for(a=[a0+as:as:a1]) { f = as/(a1-a+as); rotate([0,0,a]) guideline([[-inr-fanduct_w*f,0]]); } guideline([ [-our+fanduct_w*cos(30)*3/4,fanduct_w*sin(30)*3/4], [-inr*cos(10),inr*sin(10)] |