-rw-r--r-- | fanduct.scad | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fanduct.scad b/fanduct.scad index e16c5ae..72143e2 100644 --- a/fanduct.scad +++ b/fanduct.scad | |||
@@ -68,47 +68,47 @@ module fanduct(type=type) { | |||
68 | module pin(xy) { | 68 | module pin(xy) { |
69 | translate([xy[0],xy[1],0]) | 69 | translate([xy[0],xy[1],0]) |
70 | cylinder(d=2*extrusion_width,h=2*fanduct_shell+inlet_h,$fn=6); | 70 | cylinder(d=2*extrusion_width,h=2*fanduct_shell+inlet_h,$fn=6); |
71 | } | 71 | } |
72 | xyxyxy=concat(xyxy,[[0,0]]); | 72 | xyxyxy=concat(xyxy,[[0,0]]); |
73 | for(i=[0:1:len(xyxyxy)-2]) | 73 | for(i=[0:1:len(xyxyxy)-2]) |
74 | hull() for(j=[i,i+1]) pin(xyxyxy[j]); | 74 | hull() for(j=[i,i+1]) pin(xyxyxy[j]); |
75 | } | 75 | } |
76 | 76 | ||
77 | module circus(what) { | 77 | module circus(what) { |
78 | if(what=="in") { | 78 | if(what=="in") { |
79 | difference() { | 79 | difference() { |
80 | rotate_extrude($fn=smooth_f) | 80 | rotate_extrude($fn=smooth_f) |
81 | polygon([ | 81 | polygon([ |
82 | [0,-fanduct_elevation], | 82 | [0,-fanduct_elevation], |
83 | [fanduct_ir+fanduct_shell,fanduct_shell+fanduct_h/2], | 83 | [fanduct_ir+fanduct_shell,fanduct_shell+fanduct_h/2], |
84 | [fanduct_ir+fanduct_shell,0], | 84 | [fanduct_ir+fanduct_shell+fanduct_w/2,0], |
85 | [0,-fanduct_elevation-.1]]); | 85 | [0,-fanduct_elevation-.1]]); |
86 | translate([0,0,-1]) | 86 | translate([0,0,-1]) |
87 | cylinder(r=hotend_clearance,h=fanduct_h+2*fanduct_shell+2,$fn=smooth_f); | 87 | cylinder(r=hotend_clearance,h=fanduct_h+2*fanduct_shell+2,$fn=smooth_f); |
88 | mirror([0,0,1]) | 88 | mirror([0,0,1]) |
89 | translate([0,0,-epsilon]) | 89 | translate([0,0,-epsilon]) |
90 | cylinder(r=fanduct_ir+fanduct_shell+1,h=fanduct_elevation+.1+2); | 90 | cylinder(r=fanduct_ir+fanduct_shell+1,h=fanduct_elevation+.1+2); |
91 | } | 91 | } |
92 | }else if(what=="out") { | 92 | }else if(what=="out") { |
93 | difference() { | 93 | difference() { |
94 | rotate_extrude($fn=smooth_f) | 94 | rotate_extrude($fn=smooth_f) |
95 | polygon([ | 95 | polygon([ |
96 | [0,-fanduct_elevation], | 96 | [0,-fanduct_elevation], |
97 | [fanduct_ir+fanduct_shell+1,fanduct_h/2], | 97 | [fanduct_ir+fanduct_shell+1,fanduct_h/2], |
98 | [fanduct_ir+fanduct_shell+1,fanduct_shell], | 98 | [fanduct_ir+fanduct_w/2+fanduct_shell+1,fanduct_shell], |
99 | [0,-fanduct_elevation-.1]]); | 99 | [0,-fanduct_elevation-.1]]); |
100 | circus("airguides"); | 100 | circus("airguides"); |
101 | } | 101 | } |
102 | }else if(what=="airguides") { | 102 | }else if(what=="airguides") { |
103 | inr = fanduct_ir+fanduct_shell; our = inr+fanduct_w; | 103 | inr = fanduct_ir+fanduct_shell; our = inr+fanduct_w; |
104 | union() { | 104 | union() { |
105 | for(my=[0,1]) mirror([0,my,0]) { | 105 | for(my=[0,1]) mirror([0,my,0]) { |
106 | guideline([ | 106 | guideline([ |
107 | [-our,inlet_w/6], | 107 | [-our,inlet_w/6], |
108 | [-inr*sin(60),inr*cos(60)] | 108 | [-inr*sin(60),inr*cos(60)] |
109 | ]); | 109 | ]); |
110 | a0=30; as=15; a1=180; | 110 | a0=30; as=15; a1=180; |
111 | for(a=[a0+as:as:a1]) { | 111 | for(a=[a0+as:as:a1]) { |
112 | f = as/(a1-a+as); | 112 | f = as/(a1-a+as); |
113 | rotate([0,0,a]) guideline([[-inr-fanduct_w*f,0]]); | 113 | rotate([0,0,a]) guideline([[-inr-fanduct_w*f,0]]); |
114 | } | 114 | } |