-rw-r--r-- | fanduct.scad | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/fanduct.scad b/fanduct.scad index 235c079..e16c5ae 100644 --- a/fanduct.scad +++ b/fanduct.scad @@ -53,8 +53,10 @@ module fanduct(type=type) { if(what=="in") { - for(y=[-1,1]) translate([0,y*(fanduct_ir+fanduct_shell+fanduct_w/2),fanduct_shell*2+fanduct_h]) - rotate([90,0,0]) { - cylinder(r=fanduct_shell,h=fanduct_w,center=true,$fn=30); - for(z=[-1,1]) translate([0,0,z*fanduct_w/2]) - sphere(r=fanduct_shell,$fn=30); - } + for(y=[-1,1]) + hull() for(z=[0,-fanduct_shell-fanduct_h/2]) + translate([0,y*(fanduct_ir+fanduct_shell+fanduct_w/2),fanduct_shell*2+fanduct_h+z]) + rotate([90,0,0]) { + cylinder(r=fanduct_shell,h=fanduct_w,center=true,$fn=30); + for(z=[-1,1]) translate([0,0,z*fanduct_w/2]) + sphere(r=fanduct_shell,$fn=30); + } } |