author | Michael Krelin <hacker@klever.net> | 2016-05-29 21:10:43 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2016-05-29 21:10:43 (UTC) |
commit | 2ad350e5b2661fa64d3b04588b9b0986f29a72b9 (patch) (side-by-side diff) | |
tree | 8abd233aa65fb79c35eb1abd54fe6ccf0c67ee80 | |
parent | 6369f8a5865e1ce85d5b7a0520da47adbe86eba1 (diff) | |
download | fanductory-2ad350e5b2661fa64d3b04588b9b0986f29a72b9.zip fanductory-2ad350e5b2661fa64d3b04588b9b0986f29a72b9.tar.gz fanductory-2ad350e5b2661fa64d3b04588b9b0986f29a72b9.tar.bz2 |
circular output going deeper
and deeper and deeper and deeper insiiiiiiiiiide
-rw-r--r-- | fanduct.scad | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fanduct.scad b/fanduct.scad index e16c5ae..72143e2 100644 --- a/fanduct.scad +++ b/fanduct.scad @@ -60,63 +60,63 @@ module fanduct(type=type) { sphere(r=fanduct_shell,$fn=30); } } } // *** output 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_ir+fanduct_shell,fanduct_shell+fanduct_h/2], - [fanduct_ir+fanduct_shell,0], + [fanduct_ir+fanduct_shell+fanduct_w/2,0], [0,-fanduct_elevation-.1]]); 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); } }else if(what=="out") { difference() { rotate_extrude($fn=smooth_f) polygon([ [0,-fanduct_elevation], [fanduct_ir+fanduct_shell+1,fanduct_h/2], - [fanduct_ir+fanduct_shell+1,fanduct_shell], + [fanduct_ir+fanduct_w/2+fanduct_shell+1,fanduct_shell], [0,-fanduct_elevation-.1]]); circus("airguides"); } }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)] ]); } }/*union*/ }/*airguides*/ } |