summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2016-06-11 17:57:11 (UTC)
committer Michael Krelin <hacker@klever.net>2016-06-11 17:57:11 (UTC)
commit2d09f1c09a64adab3a756e5d7108a2138682a2f3 (patch) (unidiff)
treef4afe1231466eb6fffbb7d8409c9fbbb5c0f34ba
parent4f322c6a7e2c5566ab90f17f010b1c5014ac4cd4 (diff)
downloadfanductory-2d09f1c09a64adab3a756e5d7108a2138682a2f3.zip
fanductory-2d09f1c09a64adab3a756e5d7108a2138682a2f3.tar.gz
fanductory-2d09f1c09a64adab3a756e5d7108a2138682a2f3.tar.bz2
fix protrusions below the sea level
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--fanduct.scad2
1 files changed, 1 insertions, 1 deletions
diff --git a/fanduct.scad b/fanduct.scad
index 7a9e205..3e2a15e 100644
--- a/fanduct.scad
+++ b/fanduct.scad
@@ -88,49 +88,49 @@ module fanduct(type=type,ductshape=ductshape) {
88 module output(what,type=type) { 88 module output(what,type=type) {
89 module guideline(xyxy) { 89 module guideline(xyxy) {
90 module pin(xy) { 90 module pin(xy) {
91 translate([xy[0],xy[1],0]) 91 translate([xy[0],xy[1],0])
92 cylinder(d=2*extrusion_width,h=2*fanduct_shell+inlet_h,$fn=6); 92 cylinder(d=2*extrusion_width,h=2*fanduct_shell+inlet_h,$fn=6);
93 } 93 }
94 xyxyxy=concat(xyxy,[[0,0]]); 94 xyxyxy=concat(xyxy,[[0,0]]);
95 for(i=[0:1:len(xyxyxy)-2]) 95 for(i=[0:1:len(xyxyxy)-2])
96 hull() for(j=[i,i+1]) pin(xyxyxy[j]); 96 hull() for(j=[i,i+1]) pin(xyxyxy[j]);
97 } 97 }
98 98
99 module circus(what) { 99 module circus(what) {
100 if(what=="in") { 100 if(what=="in") {
101 difference() { 101 difference() {
102 rotate_extrude($fn=smooth_f) 102 rotate_extrude($fn=smooth_f)
103 polygon([ 103 polygon([
104 [0,-fanduct_elevation+fanduct_blowtarget+epsilon], 104 [0,-fanduct_elevation+fanduct_blowtarget+epsilon],
105 [fanduct_ir+fanduct_shell,fanduct_shell+fanduct_h/2], 105 [fanduct_ir+fanduct_shell,fanduct_shell+fanduct_h/2],
106 [fanduct_ir+fanduct_shell+fanduct_w/2,0], 106 [fanduct_ir+fanduct_shell+fanduct_w/2,0],
107 [0,-fanduct_elevation+fanduct_blowtarget-epsilon]]); 107 [0,-fanduct_elevation+fanduct_blowtarget-epsilon]]);
108 translate([0,0,-1]) 108 translate([0,0,-1])
109 cylinder(r=hotend_clearance,h=fanduct_h+2*fanduct_shell+2,$fn=smooth_f); 109 cylinder(r=hotend_clearance,h=fanduct_h+2*fanduct_shell+2,$fn=smooth_f);
110 mirror([0,0,1]) 110 mirror([0,0,1])
111 translate([0,0,-epsilon]) 111 translate([0,0,-epsilon])
112 cylinder(r=fanduct_ir+fanduct_shell+1,h=fanduct_elevation+.1+2); 112 cylinder(r=fanduct_ir+2*fanduct_shell+fanduct_w+1,h=fanduct_elevation+.1+2);
113 } 113 }
114 }else if(what=="out") { 114 }else if(what=="out") {
115 rotate_extrude($fn=smooth_f) 115 rotate_extrude($fn=smooth_f)
116 polygon([ 116 polygon([
117 [0,-fanduct_elevation+fanduct_blowtarget+epsilon], 117 [0,-fanduct_elevation+fanduct_blowtarget+epsilon],
118 [fanduct_ir+fanduct_shell+1,fanduct_h/2], 118 [fanduct_ir+fanduct_shell+1,fanduct_h/2],
119 [fanduct_ir+fanduct_w/2+fanduct_shell+1,fanduct_shell], 119 [fanduct_ir+fanduct_w/2+fanduct_shell+1,fanduct_shell],
120 [0,-fanduct_elevation+fanduct_blowtarget-epsilon]]); 120 [0,-fanduct_elevation+fanduct_blowtarget-epsilon]]);
121 }else if(what=="airguides") { 121 }else if(what=="airguides") {
122 inr = fanduct_ir+fanduct_shell; our = inr+fanduct_w; 122 inr = fanduct_ir+fanduct_shell; our = inr+fanduct_w;
123 union() { 123 union() {
124 for(my=[0,1]) mirror([0,my,0]) { 124 for(my=[0,1]) mirror([0,my,0]) {
125 guideline([ 125 guideline([
126 [-our,inlet_w/6], 126 [-our,inlet_w/6],
127 [-inr*sin(60),inr*cos(60)] 127 [-inr*sin(60),inr*cos(60)]
128 ]); 128 ]);
129 a0=30; as=15; a1=180; 129 a0=30; as=15; a1=180;
130 for(a=[a0+as:as:a1]) { 130 for(a=[a0+as:as:a1]) {
131 f = as/(a1-a+as); 131 f = as/(a1-a+as);
132 rotate([0,0,a]) guideline([[-inr-fanduct_w*f,0]]); 132 rotate([0,0,a]) guideline([[-inr-fanduct_w*f,0]]);
133 } 133 }
134 guideline([ 134 guideline([
135 [-our+fanduct_w*cos(30)*3/4,fanduct_w*sin(30)*3/4], 135 [-our+fanduct_w*cos(30)*3/4,fanduct_w*sin(30)*3/4],
136 [-inr*cos(10),inr*sin(10)] 136 [-inr*cos(10),inr*sin(10)]