-rw-r--r-- | fanduct.scad | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fanduct.scad b/fanduct.scad index fa14b7a..75a3bb1 100644 --- a/fanduct.scad +++ b/fanduct.scad | |||
@@ -131,43 +131,43 @@ module fanduct(type=type,ductshape=ductshape) { | |||
131 | rotate([0,0,a]) guideline([[-inr-fanduct_w*f,0]]); | 131 | rotate([0,0,a]) guideline([[-inr-fanduct_w*f,0]]); |
132 | } | 132 | } |
133 | guideline([ | 133 | guideline([ |
134 | [-our+fanduct_w*cos(30)*3/4,fanduct_w*sin(30)*3/4], | 134 | [-our+fanduct_w*cos(30)*3/4,fanduct_w*sin(30)*3/4], |
135 | [-inr*cos(10),inr*sin(10)] | 135 | [-inr*cos(10),inr*sin(10)] |
136 | ]); | 136 | ]); |
137 | } | 137 | } |
138 | }/*union*/ | 138 | }/*union*/ |
139 | }/*airguides*/ | 139 | }/*airguides*/ |
140 | } | 140 | } |
141 | 141 | ||
142 | module jets(what) { | 142 | module jets(what) { |
143 | od = fanduct_h/2+fanduct_shell; | 143 | od = fanduct_h*2/3+fanduct_shell; |
144 | md = fanduct_ir+fanduct_shell+fanduct_w/2; | 144 | md = fanduct_ir+fanduct_shell+fanduct_w/2; |
145 | jww = 2*md*sin(jet_angle/2); | 145 | jww = 2*md*sin(jet_angle/2); |
146 | render(convexity=8) difference() { | 146 | difference() { |
147 | for(a=[0:120:359]) rotate([0,0,a]) { | 147 | for(a=[0:120:359]) rotate([0,0,a]) { |
148 | if(what=="in") { | 148 | if(what=="in") { |
149 | hull() { | 149 | hull() { |
150 | render(convexity=4) intersection() { | 150 | intersection() { |
151 | translate([md-fanduct_shell-fanduct_w/2,-jww/2,0]) | 151 | translate([md-fanduct_w/2,-jww/2,0]) |
152 | cube(size=[fanduct_shell+fanduct_w/2,jww,od]); | 152 | cube(size=[fanduct_shell+fanduct_w/2,jww,od]); |
153 | duct(what=what); | 153 | duct(what=what); |
154 | } | 154 | } |
155 | translate([0,0,-fanduct_elevation]) sphere(r=.5); | 155 | translate([0,0,-fanduct_elevation]) sphere(r=.5); |
156 | } | 156 | } |
157 | }else if(what=="out") { | 157 | }else if(what=="out") { |
158 | hull() { | 158 | hull() { |
159 | render(convexity=4) intersection() { | 159 | intersection() { |
160 | translate([md-fanduct_w/2-fanduct_shell,-jww/2+fanduct_shell,fanduct_shell]) | 160 | translate([md-fanduct_w/2,-jww/2+fanduct_shell,fanduct_shell]) |
161 | cube(size=[fanduct_w/2+fanduct_shell,jww-2*fanduct_shell,od-2*fanduct_shell]); | 161 | cube(size=[fanduct_w/2,jww-2*fanduct_shell,od-2*fanduct_shell]); |
162 | duct(what=what); | 162 | duct(what=what); |
163 | } | 163 | } |
164 | translate([0,0,-fanduct_elevation]) sphere(r=.2); | 164 | translate([0,0,-fanduct_elevation]) sphere(r=.2); |
165 | } | 165 | } |
166 | } | 166 | } |
167 | } | 167 | } |
168 | if(what=="in") { | 168 | if(what=="in") { |
169 | translate([0,0,-fanduct_elevation-2+epsilon]) | 169 | translate([0,0,-fanduct_elevation-2+epsilon]) |
170 | cylinder(r=fanduct_ir+fanduct_shell*2+fanduct_w+1,h=fanduct_elevation+2); | 170 | cylinder(r=fanduct_ir+fanduct_shell*2+fanduct_w+1,h=fanduct_elevation+2); |
171 | translate([0,0,-hotend_clearance]) | 171 | translate([0,0,-hotend_clearance]) |
172 | rotate([0,0,30]) | 172 | rotate([0,0,30]) |
173 | cylinder(r1=hotend_clearance*2,r2=0,h=hotend_clearance*2,$fn=6); | 173 | cylinder(r1=hotend_clearance*2,r2=0,h=hotend_clearance*2,$fn=6); |