summaryrefslogtreecommitdiffabout
path: root/fanduct.scad
Unidiff
Diffstat (limited to 'fanduct.scad') (more/less context) (ignore whitespace changes)
-rw-r--r--fanduct.scad3
1 files changed, 1 insertions, 2 deletions
diff --git a/fanduct.scad b/fanduct.scad
index 8d0414f..52aee0e 100644
--- a/fanduct.scad
+++ b/fanduct.scad
@@ -249,50 +249,49 @@ module fanduct(type=type,ductshape=ductshape,dual=dual) {
249 [-near ,to_midduct/2] ]); 249 [-near ,to_midduct/2] ]);
250 guideline([ [-near-fanduct_w/3, to_midduct/2 ], 250 guideline([ [-near-fanduct_w/3, to_midduct/2 ],
251 [-near ,nozzles_apart/2+near ] ]); 251 [-near ,nozzles_apart/2+near ] ]);
252 guideline([ [0 ,nozzles_apart/2+near+fanduct_w*space_behind_nozzle/to_midduct] ]); 252 guideline([ [0 ,nozzles_apart/2+near+fanduct_w*space_behind_nozzle/to_midduct] ]);
253 } 253 }
254 } 254 }
255 } 255 }
256 } 256 }
257 257
258 if(dual) dual(what); 258 if(dual) dual(what);
259 else if(type=="circular") circus(what); 259 else if(type=="circular") circus(what);
260 else if(type=="3jets") jets(what); 260 else if(type=="3jets") jets(what);
261 } 261 }
262 262
263 // ***air intake 263 // ***air intake
264 module intake(what) { 264 module intake(what) {
265 module placeit() { 265 module placeit() {
266 translate([-fanduct_ir-2*fanduct_shell-fanduct_w-inlet_away,0,fanduct_shell]) 266 translate([-fanduct_ir-2*fanduct_shell-fanduct_w-inlet_away,0,fanduct_shell])
267 rotate([0,-90,0]) 267 rotate([0,-90,0])
268 children(); 268 children();
269 } 269 }
270 if(what=="in") { 270 if(what=="in") {
271 placeit() translate([0,-inlet_w/2,0]) { 271 placeit() translate([0,-inlet_w/2,0]) {
272 difference() { 272 difference() {
273 cube(size=[inlet_h,inlet_w,inlet_long_l+fanduct_shell]); 273 cube(size=[inlet_h,inlet_w,inlet_long_l+fanduct_shell]); translate([inlet_h+fanduct_shell,0,inlet_long_l+fanduct_shell])
274 translate([inlet_h+fanduct_shell,0,inlet_long_l+fanduct_shell])
275 rotate([-90,0,0]) 274 rotate([-90,0,0])
276 translate([0,0,-1]) 275 translate([0,0,-1])
277 cylinder(r=inlet_h,h=inlet_w+2*fanduct_shell+2,$fn=inlet_h*4); 276 cylinder(r=inlet_h,h=inlet_w+2*fanduct_shell+2,$fn=inlet_h*4);
278 } 277 }
279 // supports 278 // supports
280 for(i=[-1,0,1]) 279 for(i=[-1,0,1])
281 translate([-fanduct_shell, 280 translate([-fanduct_shell,
282 (i+1)*(inlet_w-extrusion_width)/2, 281 (i+1)*(inlet_w-extrusion_width)/2,
283 -inlet_away-fanduct_w/2]) 282 -inlet_away-fanduct_w/2])
284 cube(size=[fanduct_shell+1, 283 cube(size=[fanduct_shell+1,
285 extrusion_width, 284 extrusion_width,
286 inlet_long_l+fanduct_shell+inlet_away+fanduct_w/2]); 285 inlet_long_l+fanduct_shell+inlet_away+fanduct_w/2]);
287 } 286 }
288 hull() { 287 hull() {
289 placeit() translate([-fanduct_shell,-inlet_w/2-fanduct_shell,0]) 288 placeit() translate([-fanduct_shell,-inlet_w/2-fanduct_shell,0])
290 cube(size=[inlet_h+2*fanduct_shell,inlet_w+2*fanduct_shell,fanduct_shell]); 289 cube(size=[inlet_h+2*fanduct_shell,inlet_w+2*fanduct_shell,fanduct_shell]);
291 translate([-fanduct_ir-fanduct_shell-fanduct_w/2,0,0]) 290 translate([-fanduct_ir-fanduct_shell-fanduct_w/2,0,0])
292 translate([0,-inlet_w/2-fanduct_shell/2,0]) 291 translate([0,-inlet_w/2-fanduct_shell/2,0])
293 cube(size=[1,inlet_w+fanduct_shell,fanduct_shell*2+fanduct_h]); 292 cube(size=[1,inlet_w+fanduct_shell,fanduct_shell*2+fanduct_h]);
294 } 293 }
295 }else if(what=="out") { 294 }else if(what=="out") {
296 placeit() translate([fanduct_shell,-inlet_w/2+fanduct_shell,0]) 295 placeit() translate([fanduct_shell,-inlet_w/2+fanduct_shell,0])
297 cube(size=[inlet_h-2*fanduct_shell,inlet_w-2*fanduct_shell,inlet_long_l+fanduct_shell+1]); 296 cube(size=[inlet_h-2*fanduct_shell,inlet_w-2*fanduct_shell,inlet_long_l+fanduct_shell+1]);
298 hull() { 297 hull() {