summaryrefslogtreecommitdiffabout
path: root/fanduct.scad
Unidiff
Diffstat (limited to 'fanduct.scad') (more/less context) (ignore whitespace changes)
-rw-r--r--fanduct.scad11
1 files changed, 6 insertions, 5 deletions
diff --git a/fanduct.scad b/fanduct.scad
index 132b9e8..690a4c8 100644
--- a/fanduct.scad
+++ b/fanduct.scad
@@ -230,37 +230,38 @@ module fanduct(type=type,ductshape=ductshape,dual=dual) {
230 } 230 }
231 translate([0,0,epsilon]) hull() for(my=[0:1]) mirror([0,my,0]) for(s=dual_spots) translate(s) 231 translate([0,0,epsilon]) hull() for(my=[0:1]) mirror([0,my,0]) for(s=dual_spots) translate(s)
232 mirror([0,0,1]) cylinder(d=fanduct_w+2*fanduct_shell+2,h=fanduct_elevation-fanduct_blowtarget+1); 232 mirror([0,0,1]) cylinder(d=fanduct_w+2*fanduct_shell+2,h=fanduct_elevation-fanduct_blowtarget+1);
233 for(s=[-1,1]) translate([0,s*nozzles_apart/2,-1]) 233 for(s=[-1,1]) translate([0,s*nozzles_apart/2,-1])
234 rotate([0,0,180/cfn]) cylinder(r=hotend_clearance/cos(180/cfn),h=fanduct_h+2*fanduct_shell+2,$fn=cfn); 234 rotate([0,0,180/cfn]) cylinder(r=hotend_clearance/cos(180/cfn),h=fanduct_h+2*fanduct_shell+2,$fn=cfn);
235 } 235 }
236 }else if(what=="out") { 236 }else if(what=="out") {
237 hulls() { 237 hulls() {
238 translate([0,0,fanduct_shell]) cylinder(d=fanduct_w,h=fanduct_h/2-fanduct_shell/2); 238 translate([0,0,fanduct_shell]) cylinder(d=fanduct_w,h=fanduct_h/2-fanduct_shell/2);
239 translate([0,-nozzles_apart/2,-fanduct_elevation+fanduct_blowtarget]) sphere(d=.1); 239 translate([0,-nozzles_apart/2,-fanduct_elevation+fanduct_blowtarget]) sphere(d=.1);
240 } 240 }
241 }else if(what=="airguides") { 241 }else if(what=="airguides") {
242 far = fanduct_ir+fanduct_shell+fanduct_w; 242 far = fanduct_ir+fanduct_shell+fanduct_w;
243 near = fanduct_ir; 243 near = fanduct_ir;
244 union() { 244 union() {
245 for(my=[0,1]) mirror([0,my,0]) { 245 for(my=[0,1]) mirror([0,my,0]) {
246 guideline([ [-far ,0], [0,0] ]); 246 guideline([ [-far ,0], [0, nozzles_apart/8] ]);
247 guideline([ [-far ,inlet_w/2/4], 247 guideline([ [-far ,inlet_w/2/4 ],
248 [-near ,nozzles_apart/2] ]); 248 [-near ,to_midduct/2] ]);
249 guideline([ [-near-fanduct_w/3,nozzles_apart/2+near+fanduct_w/3] ]); 249 guideline([ [-near-fanduct_w/3, to_midduct/2 ],
250 guideline([ [0 ,nozzles_apart/2+near+fanduct_w/2] ]); 250 [-near ,nozzles_apart/2+near ] ]);
251 guideline([ [0 ,nozzles_apart/2+near+fanduct_w*space_behind_nozzle/to_midduct] ]);
251 } 252 }
252 } 253 }
253 } 254 }
254 } 255 }
255 256
256 if(dual) dual(what); 257 if(dual) dual(what);
257 else if(type=="circular") circus(what); 258 else if(type=="circular") circus(what);
258 else if(type=="3jets") jets(what); 259 else if(type=="3jets") jets(what);
259 } 260 }
260 261
261 // ***air intake 262 // ***air intake
262 module intake(what) { 263 module intake(what) {
263 module placeit() { 264 module placeit() {
264 translate([-fanduct_ir-2*fanduct_shell-fanduct_w-inlet_away,0,fanduct_shell]) 265 translate([-fanduct_ir-2*fanduct_shell-fanduct_w-inlet_away,0,fanduct_shell])
265 rotate([0,-90,0]) 266 rotate([0,-90,0])
266 children(); 267 children();