-rw-r--r-- | fanduct.scad | 11 |
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 | |||
@@ -222,53 +222,54 @@ module fanduct(type=type,ductshape=ductshape,dual=dual) { | |||
222 | } | 222 | } |
223 | } | 223 | } |
224 | if(what=="in") { | 224 | if(what=="in") { |
225 | cfn= 4; // clearance cutout $fn | 225 | cfn= 4; // clearance cutout $fn |
226 | difference() { | 226 | difference() { |
227 | hulls() { | 227 | hulls() { |
228 | cylinder(d=fanduct_w+2*fanduct_shell,h=2*fanduct_shell+fanduct_h/2); | 228 | cylinder(d=fanduct_w+2*fanduct_shell,h=2*fanduct_shell+fanduct_h/2); |
229 | translate([0,-nozzles_apart/2,-fanduct_elevation-fanduct_blowtarget]) sphere(d=.1); | 229 | translate([0,-nozzles_apart/2,-fanduct_elevation-fanduct_blowtarget]) sphere(d=.1); |
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(); |
267 | } | 268 | } |
268 | if(what=="in") { | 269 | if(what=="in") { |
269 | placeit() translate([0,-inlet_w/2,0]) { | 270 | placeit() translate([0,-inlet_w/2,0]) { |
270 | difference() { | 271 | difference() { |
271 | cube(size=[inlet_h,inlet_w,inlet_long_l+fanduct_shell]); | 272 | cube(size=[inlet_h,inlet_w,inlet_long_l+fanduct_shell]); |
272 | translate([inlet_h+fanduct_shell,0,inlet_long_l+fanduct_shell]) | 273 | translate([inlet_h+fanduct_shell,0,inlet_long_l+fanduct_shell]) |
273 | rotate([-90,0,0]) | 274 | rotate([-90,0,0]) |
274 | translate([0,0,-1]) | 275 | translate([0,0,-1]) |