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) (show 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
@@ -64,97 +64,97 @@ module fanduct(type=type,ductshape=ductshape) {
64 union() { 64 union() {
65 square([sh,sv/2]); 65 square([sh,sv/2]);
66 translate([sh/2,sv/2]) 66 translate([sh/2,sv/2])
67 scale([sh/smax,sv/smax]) 67 scale([sh/smax,sv/smax])
68 circle(d=smax,$fn=36); 68 circle(d=smax,$fn=36);
69 } 69 }
70 } 70 }
71 } 71 }
72 72
73 // ***bumps for easier position adjustments in line with hotend 73 // ***bumps for easier position adjustments in line with hotend
74 module marks(what) { 74 module marks(what) {
75 if(what=="in") { 75 if(what=="in") {
76 for(y=[-1,1]) 76 for(y=[-1,1])
77 hull() for(z=[0,-fanduct_shell-fanduct_h/2]) 77 hull() for(z=[0,-fanduct_shell-fanduct_h/2])
78 translate([0,y*(fanduct_ir+fanduct_shell+fanduct_w/2),fanduct_shell*2+fanduct_h+z]) 78 translate([0,y*(fanduct_ir+fanduct_shell+fanduct_w/2),fanduct_shell*2+fanduct_h+z])
79 rotate([90,0,0]) { 79 rotate([90,0,0]) {
80 cylinder(r=fanduct_shell,h=fanduct_w,center=true,$fn=30); 80 cylinder(r=fanduct_shell,h=fanduct_w,center=true,$fn=30);
81 for(z=[-1,1]) translate([0,0,z*fanduct_w/2]) 81 for(z=[-1,1]) translate([0,0,z*fanduct_w/2])
82 sphere(r=fanduct_shell,$fn=30); 82 sphere(r=fanduct_shell,$fn=30);
83 } 83 }
84 } 84 }
85 } 85 }
86 86
87 // ***output 87 // ***output
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)]
137 ]); 137 ]);
138 } 138 }
139 }/*union*/ 139 }/*union*/
140 }/*airguides*/ 140 }/*airguides*/
141 } 141 }
142 142
143 module jets(what) { 143 module jets(what) {
144 od = fanduct_h*2/3+fanduct_shell; 144 od = fanduct_h*2/3+fanduct_shell;
145 md = fanduct_ir+fanduct_shell+fanduct_w/2; 145 md = fanduct_ir+fanduct_shell+fanduct_w/2;
146 jww = 2*md*sin(jet_angle/2); 146 jww = 2*md*sin(jet_angle/2);
147 difference() { 147 difference() {
148 for(a=[0:120:359]) rotate([0,0,a]) { 148 for(a=[0:120:359]) rotate([0,0,a]) {
149 if(what=="in") { 149 if(what=="in") {
150 hull() { 150 hull() {
151 intersection() { 151 intersection() {
152 translate([md-fanduct_w/2,-jww/2,0]) 152 translate([md-fanduct_w/2,-jww/2,0])
153 cube(size=[fanduct_shell+fanduct_w/2,jww,od]); 153 cube(size=[fanduct_shell+fanduct_w/2,jww,od]);
154 duct(what=what); 154 duct(what=what);
155 } 155 }
156 translate([0,0,-fanduct_elevation]) sphere(r=.5); 156 translate([0,0,-fanduct_elevation]) sphere(r=.5);
157 } 157 }
158 }else if(what=="out") { 158 }else if(what=="out") {
159 hull() { 159 hull() {
160 intersection() { 160 intersection() {