summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2016-05-29 21:06:28 (UTC)
committer Michael Krelin <hacker@klever.net>2016-05-29 21:06:28 (UTC)
commitb4f3e3d54ad273a0dcf5bf3734ba1b37a57954d3 (patch) (side-by-side diff)
treee8aa4839e8e593cc22bc74dfcabf73465def8ca9
parent80ae710e0a8edf1a2f119fb191b7295e3e45cba3 (diff)
downloadfanductory-b4f3e3d54ad273a0dcf5bf3734ba1b37a57954d3.zip
fanductory-b4f3e3d54ad273a0dcf5bf3734ba1b37a57954d3.tar.gz
fanductory-b4f3e3d54ad273a0dcf5bf3734ba1b37a57954d3.tar.bz2
longer duct tails going down halfway
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--fanduct.scad4
1 files changed, 2 insertions, 2 deletions
diff --git a/fanduct.scad b/fanduct.scad
index d467c60..a60609e 100644
--- a/fanduct.scad
+++ b/fanduct.scad
@@ -153,90 +153,90 @@ module fanduct(type=type) {
if(type=="circular") circus(what);
else if(type=="3jets") jets(what);
}
// *** air intake
module intake(what) {
module placeit() {
translate([-fanduct_ir-2*fanduct_shell-fanduct_w-inlet_away,0,fanduct_shell])
rotate([0,-90,0])
children();
}
if(what=="in") {
placeit() translate([0,-inlet_w/2,0]) {
cube(size=[inlet_h,inlet_w,inlet_l+fanduct_shell]);
// supports
for(i=[-1,0,1])
translate([-fanduct_shell,
(i+1)*(inlet_w-extrusion_width)/2,
-inlet_away-fanduct_w/2])
cube(size=[fanduct_shell,
extrusion_width,
inlet_l+fanduct_shell+inlet_away+fanduct_w/2]);
}
hull() {
placeit() translate([-fanduct_shell,-inlet_w/2-fanduct_shell,0])
cube(size=[inlet_h+2*fanduct_shell,inlet_w+2*fanduct_shell,fanduct_shell]);
translate([-fanduct_ir-fanduct_shell-fanduct_w/2,0,0])
translate([0,-inlet_w/2-fanduct_shell/2,0])
cube(size=[1,inlet_w+fanduct_shell,fanduct_shell*2+fanduct_h]);
}
}else if(what=="out") {
placeit() translate([fanduct_shell,-inlet_w/2+fanduct_shell,0])
cube(size=[inlet_h-2*fanduct_shell,inlet_w-2*fanduct_shell,inlet_l+fanduct_shell+1]);
hull() {
placeit() translate([fanduct_shell,-inlet_w/2+fanduct_shell,0])
cube(size=[inlet_h-2*fanduct_shell,inlet_w-2*fanduct_shell,fanduct_shell]);
translate([-fanduct_ir-fanduct_shell-fanduct_w/2,0,fanduct_shell])
translate([0,-inlet_w/2,0])
cube(size=[1,inlet_w,fanduct_h]);
}
}
}
// *** DUCT TAILS!!! WOO-OO! (every day they're out there making duct tails…)
module tails(what) {
if(what=="in") {
for(mx=[0,1]) mirror([mx,0,0])
- translate([fanduct_ir+fanduct_shell+fanduct_w/2,0,fanduct_shell+fanduct_h])
+ translate([fanduct_ir+fanduct_shell+fanduct_w/2,0,fanduct_shell+fanduct_h/2])
rotate([90,0,90])
translate([0,0,-snapper_d/2])
- snapper(d=snapper_d,o=snapper_overlap,side=0,l=fanduct_h+fanduct_shell);
+ snapper(d=snapper_d,o=snapper_overlap,side=0,l=fanduct_h*3/2+fanduct_shell);
}
}
module parts(what) {
union() {
duct(what);
marks(what);
output(what);
intake(what);
tails(what);
}
}
difference() {
parts("in");
parts("out");
}
}
view="full"; // hcut|vcut|*
hinfinity=4*(fanduct_ir+fanduct_shell*2+fanduct_w+inlet_away);
vinfinity=2*(fanduct_shell*2+fanduct_h+inlet_h);
if(view=="hcut") {
difference() {
fanduct();
translate([-hinfinity/2,-hinfinity/2,fanduct_shell+fanduct_h/2])
cube(size=[hinfinity,hinfinity,vinfinity]);
}
}else if(view=="vcut") {
difference() {
fanduct();
translate([-hinfinity/2,0,-vinfinity/2])
cube(size=[hinfinity,hinfinity,vinfinity]);
}
}else fanduct();
/* vim:set sw=1 ai: */