-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | fanduct.scad | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -1,15 +1,16 @@ | |||
1 | -include Makefile.local | 1 | -include Makefile.local |
2 | 2 | ||
3 | OPENSCAD_APP?=/Applications/OpenSCAD.app | 3 | OPENSCAD_APP?=/Applications/OpenSCAD.app |
4 | OPENSCAD_BIN?=${OPENSCAD_APP}/Contents/MacOS/OpenSCAD | 4 | OPENSCAD_BIN?=${OPENSCAD_APP}/Contents/MacOS/OpenSCAD |
5 | OPENSCAD_FLAGS=-D draft=false | ||
5 | 6 | ||
6 | default: fanduct-circular.stl fanduct-3jets.stl fanduct-dual.stl | 7 | default: fanduct-circular.stl fanduct-3jets.stl fanduct-dual.stl |
7 | 8 | ||
8 | clean: | 9 | clean: |
9 | rm -f *.stl | 10 | rm -f *.stl |
10 | 11 | ||
11 | fanduct-%.stl: fanduct-%.scad fanduct.scad | 12 | fanduct-%.stl: fanduct-%.scad fanduct.scad |
12 | 13 | ||
13 | 14 | ||
14 | %.stl: %.scad | 15 | %.stl: %.scad |
15 | ${OPENSCAD_BIN} ${OPENSCAD_FLAGS} -o "$@" "$<" | 16 | ${OPENSCAD_BIN} ${OPENSCAD_FLAGS} -o "$@" "$<" |
diff --git a/fanduct.scad b/fanduct.scad index 690a4c8..8d0414f 100644 --- a/fanduct.scad +++ b/fanduct.scad | |||
@@ -31,25 +31,26 @@ fanduct_elevation = 3; // fanduct elevation above nozzle tip | |||
31 | fanduct_blowtarget = -2; // what to blow at | 31 | fanduct_blowtarget = -2; // what to blow at |
32 | fanduct_h = 6; // inner height of the duct | 32 | fanduct_h = 6; // inner height of the duct |
33 | fanduct_w = 7; // inner width of the duct | 33 | fanduct_w = 7; // inner width of the duct |
34 | fanduct_shell=1.2; // shell thickness | 34 | fanduct_shell=1.2; // shell thickness |
35 | fanduct_ir = heater_clearance+5; // inner radius | 35 | fanduct_ir = heater_clearance+5; // inner radius |
36 | 36 | ||
37 | jet_angle = 60-2; // angular width of the jet | 37 | jet_angle = 60-2; // angular width of the jet |
38 | 38 | ||
39 | hotend_clearance = heater_clearance; | 39 | hotend_clearance = heater_clearance; |
40 | 40 | ||
41 | snapper_d = 8; snapper_overlap=0.2;// snip snap | 41 | snapper_d = 8; snapper_overlap=0.2;// snip snap |
42 | 42 | ||
43 | smooth_f = 120; | 43 | draft=true; |
44 | smooth_f = draft? 30 : 120; | ||
44 | 45 | ||
45 | to_midduct = fanduct_ir+fanduct_shell+fanduct_w/2; | 46 | to_midduct = fanduct_ir+fanduct_shell+fanduct_w/2; |
46 | dual_spots = [ [+space_behind_nozzle, -(to_midduct+nozzles_apart/2)], | 47 | dual_spots = [ [+space_behind_nozzle, -(to_midduct+nozzles_apart/2)], |
47 | [- to_midduct, -(to_midduct+nozzles_apart/2)], | 48 | [- to_midduct, -(to_midduct+nozzles_apart/2)], |
48 | [- to_midduct, 0] ]; | 49 | [- to_midduct, 0] ]; |
49 | 50 | ||
50 | module fanduct(type=type,ductshape=ductshape,dual=dual) { | 51 | module fanduct(type=type,ductshape=ductshape,dual=dual) { |
51 | // ***duct is all around! | 52 | // ***duct is all around! |
52 | module duct(what) { | 53 | module duct(what) { |
53 | module single() { | 54 | module single() { |
54 | if(what=="in") { | 55 | if(what=="in") { |
55 | sh = fanduct_w+2*fanduct_shell; sv = fanduct_h+2*fanduct_shell; | 56 | sh = fanduct_w+2*fanduct_shell; sv = fanduct_h+2*fanduct_shell; |