-rw-r--r-- | fanduct.scad | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fanduct.scad b/fanduct.scad index f4bb705..563920c 100644 --- a/fanduct.scad +++ b/fanduct.scad | |||
@@ -213,33 +213,36 @@ module fanduct(type=type) { | |||
213 | 213 | ||
214 | module parts(what) { | 214 | module parts(what) { |
215 | union() { | 215 | union() { |
216 | duct(what); | 216 | duct(what); |
217 | marks(what); | 217 | marks(what); |
218 | output(what); | 218 | output(what); |
219 | intake(what); | 219 | intake(what); |
220 | tails(what); | 220 | tails(what); |
221 | } | 221 | } |
222 | } | 222 | } |
223 | 223 | ||
224 | difference() { | 224 | difference() { |
225 | parts("in"); | 225 | parts("in"); |
226 | parts("out"); | 226 | parts("out"); |
227 | } | 227 | } |
228 | intersection() { | 228 | intersection() { |
229 | output("airguides"); | 229 | union() { |
230 | output("airguides"); | ||
231 | sphere(d=epsilon); | ||
232 | } | ||
230 | union() { | 233 | union() { |
231 | duct("in"); output("in"); intake("in"); | 234 | duct("in"); output("in"); intake("in"); |
232 | } | 235 | } |
233 | } | 236 | } |
234 | } | 237 | } |
235 | 238 | ||
236 | view="full"; // hcut|vcut|* | 239 | view="full"; // hcut|vcut|* |
237 | 240 | ||
238 | hinfinity=4*(fanduct_ir+fanduct_shell*2+fanduct_w+inlet_away); | 241 | hinfinity=4*(fanduct_ir+fanduct_shell*2+fanduct_w+inlet_away); |
239 | vinfinity=2*(fanduct_shell*2+fanduct_h+inlet_h); | 242 | vinfinity=2*(fanduct_shell*2+fanduct_h+inlet_h); |
240 | if(view=="hcut") { | 243 | if(view=="hcut") { |
241 | difference() { | 244 | difference() { |
242 | fanduct(); | 245 | fanduct(); |
243 | translate([-hinfinity/2,-hinfinity/2,fanduct_shell+fanduct_h/2]) | 246 | translate([-hinfinity/2,-hinfinity/2,fanduct_shell+fanduct_h/2]) |
244 | cube(size=[hinfinity,hinfinity,vinfinity]); | 247 | cube(size=[hinfinity,hinfinity,vinfinity]); |
245 | } | 248 | } |