author | Michael Krelin <hacker@klever.net> | 2018-08-12 00:07:11 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2018-08-12 00:07:11 (UTC) |
commit | e3574275ad904b8ec1b188ee91d0023ea9974cb8 (patch) (unidiff) | |
tree | 035beadbc25b00303a9046e8b60256edef0c035f | |
parent | 85e4ed9548fa3be5b95004491b6c178a2990bbe7 (diff) | |
download | extrudery-e3574275ad904b8ec1b188ee91d0023ea9974cb8.zip extrudery-e3574275ad904b8ec1b188ee91d0023ea9974cb8.tar.gz extrudery-e3574275ad904b8ec1b188ee91d0023ea9974cb8.tar.bz2 |
whitespace
-rw-r--r-- | another.scad | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/another.scad b/another.scad index be0c887..6af68b6 100644 --- a/another.scad +++ b/another.scad | |||
@@ -145,129 +145,129 @@ module the_extruder( | |||
145 | translate([mount_d/2,0,0]) | 145 | translate([mount_d/2,0,0]) |
146 | cylinder(d=lsd,h=lever_thickness,center=true,$fn=60); | 146 | cylinder(d=lsd,h=lever_thickness,center=true,$fn=60); |
147 | translate([mount_d/2,-longwing,0]) rotate([0,90,0]) | 147 | translate([mount_d/2,-longwing,0]) rotate([0,90,0]) |
148 | cylinder(d=lever_thickness,h=lsd,center=true,$fn=60); | 148 | cylinder(d=lever_thickness,h=lsd,center=true,$fn=60); |
149 | }//hull | 149 | }//hull |
150 | }//union | 150 | }//union |
151 | 151 | ||
152 | // filament path | 152 | // filament path |
153 | place_idler() { | 153 | place_idler() { |
154 | translate([-idler_d/2,0,0]) rotate([90,0,0]) { | 154 | translate([-idler_d/2,0,0]) rotate([90,0,0]) { |
155 | cylinder(d=filament_path_d,h=3*gearbox_d,center=true,$fn=30); | 155 | cylinder(d=filament_path_d,h=3*gearbox_d,center=true,$fn=30); |
156 | translate([0,-filament_path_d/2/sqrt(2),0]) rotate([0,0,45]) | 156 | translate([0,-filament_path_d/2/sqrt(2),0]) rotate([0,0,45]) |
157 | cube(size=[filament_path_d/2,filament_path_d/2,3*gearbox_d],center=true); | 157 | cube(size=[filament_path_d/2,filament_path_d/2,3*gearbox_d],center=true); |
158 | }//rotate translate | 158 | }//rotate translate |
159 | translate([-idler_d/2,0,0]) | 159 | translate([-idler_d/2,0,0]) |
160 | rotate([90,0,0]) | 160 | rotate([90,0,0]) |
161 | translate([0,0, | 161 | translate([0,0, |
162 | sqrt(2)*(mount_d-pulley_d+lsd)/2 | 162 | sqrt(2)*(mount_d-pulley_d+lsd)/2 |
163 | ]) { | 163 | ]) { |
164 | cylinder(d1=filament_path_d,d2=2*filament_path_d, | 164 | cylinder(d1=filament_path_d,d2=2*filament_path_d, |
165 | h=filament_path_d,$fn=2*filament_path_d*fnd); | 165 | h=filament_path_d,$fn=2*filament_path_d*fnd); |
166 | translate([0,0,filament_path_d-epsilon]) | 166 | translate([0,0,filament_path_d-epsilon]) |
167 | cylinder(d=2*filament_path_d,h=lsd,$fn=2*filament_path_d*fnd); | 167 | cylinder(d=2*filament_path_d,h=lsd,$fn=2*filament_path_d*fnd); |
168 | } | 168 | } |
169 | }//place_idler | 169 | }//place_idler |
170 | 170 | ||
171 | // idler space and mounting hole | 171 | // idler space and mounting hole |
172 | place_idler() { | 172 | place_idler() { |
173 | difference() { | 173 | difference() { |
174 | cylinder(d=idler_d+idler_clearance*2,h=idler_h+idler_v_tolerance,center=true,$fn=60); | 174 | cylinder(d=idler_d+idler_clearance*2,h=idler_h+idler_v_tolerance,center=true,$fn=60); |
175 | if(supports) for(y=[-lsd/2+extrusion_width:(lsd-2*extrusion_width)/3:lsd/2-extrusion_width]) | 175 | if(supports) for(y=[-lsd/2+extrusion_width:(lsd-2*extrusion_width)/3:lsd/2-extrusion_width]) |
176 | translate([-lsd/2-1,y-extrusion_width/2,-idler_h/2-idler_v_tolerance/2-1]) | 176 | translate([-lsd/2-1,y-extrusion_width/2,-idler_h/2-idler_v_tolerance/2-1]) |
177 | cube(size=[lsd+2,extrusion_width,idler_h+idler_v_tolerance+2]); | 177 | cube(size=[lsd+2,extrusion_width,idler_h+idler_v_tolerance+2]); |
178 | } | 178 | } |
179 | cylinder(d=idler_screw_d,h=lever_thickness+2,center=true,$fn=30); | 179 | cylinder(d=idler_screw_d,h=lever_thickness+2,center=true,$fn=30); |
180 | translate([0,0,lever_thickness/2-idler_screwhead_h]) | 180 | translate([0,0,lever_thickness/2-idler_screwhead_h]) |
181 | cylinder(d=idler_screwhead_d,h=idler_screwhead_h+1,$fn=fnd*idler_screwhead_d); | 181 | cylinder(d=idler_screwhead_d,h=idler_screwhead_h+1,$fn=fnd*idler_screwhead_d); |
182 | } | 182 | } |
183 | // mounting screw hole | 183 | // mounting screw hole |
184 | translate([mount_d/2,0,0]) | 184 | translate([mount_d/2,0,0]) |
185 | cylinder(d=mount_screw_d+mount_screw_d_tolerance,h=lever_thickness+2,center=true,$fn=fnd*mount_screw_d); | 185 | cylinder(d=mount_screw_d+mount_screw_d_tolerance,h=lever_thickness+2,center=true,$fn=fnd*mount_screw_d); |
186 | 186 | ||
187 | // lever end | 187 | // lever end |
188 | translate([mount_d/2,0,0]) rotate([0,90,0]) { | 188 | translate([mount_d/2,0,0]) rotate([0,90,0]) { |
189 | translate([0,-longwing,lsd/2]) finger_indent(d=lever_thickness-1,r=15); | 189 | translate([0,-longwing,lsd/2]) finger_indent(d=lever_thickness-1,r=15); |
190 | translate([0,-longwing,0]) | 190 | translate([0,-longwing,0]) |
191 | mirror([0,0,1]) | 191 | mirror([0,0,1]) |
192 | difference() { | 192 | difference() { |
193 | cylinder(d=spring_d+spring_d_clearance,h=lsd,$fn=fnd*(spring_d+spring_d_clearance)); | 193 | cylinder(d=spring_d+spring_d_clearance,h=lsd,$fn=fnd*(spring_d+spring_d_clearance)); |
194 | sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4); | 194 | sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4); |
195 | } | 195 | } |
196 | }//rotate-translate | 196 | }//rotate-translate |
197 | }//difference | 197 | }//difference |
198 | // bridging patch | 198 | // bridging patch |
199 | if(bridges) place_idler() | 199 | if(bridges) place_idler() |
200 | translate([0,0,lever_thickness/2-mount_screwhead_h]) | 200 | translate([0,0,lever_thickness/2-mount_screwhead_h]) |
201 | mirror([0,0,1]) | 201 | mirror([0,0,1]) |
202 | cylinder(d=mount_screwhead_d,h=layer_height); | 202 | cylinder(d=mount_screwhead_d,h=layer_height); |
203 | }//translate | 203 | }//translate |
204 | }//lever module | 204 | }//lever module |
205 | 205 | ||
206 | module body() { | 206 | module body() { |
207 | difference() { | 207 | difference() { |
208 | union() { | 208 | union() { |
209 | cylinder(d=gearbox_d,h=body_h,$fn=fnd*gearbox_d); | 209 | cylinder(d=gearbox_d,h=body_h,$fn=fnd*gearbox_d); |
210 | // finger and spring support | 210 | // finger and spring support |
211 | fsw = gearbox_d-(gearbox_d-mount_d)/2-spring_lc; | 211 | fsw = gearbox_d-(gearbox_d-mount_d)/2-spring_lc; |
212 | translate([-gearbox_d/2,0,0]) difference() { | 212 | translate([-gearbox_d/2,0,0]) difference() { |
213 | union() { | 213 | union() { |
214 | hull() { | 214 | hull() { |
215 | translate([0,-longwing,ls_z]) | 215 | translate([0,-longwing,ls_z]) |
216 | rotate([0,90,0]) | 216 | rotate([0,90,0]) |
217 | cylinder(d=lever_thickness,h=fsw,$fn=fnd*lever_thickness); | 217 | cylinder(d=lever_thickness,h=fsw,$fn=fnd*lever_thickness); |
218 | hh=body_h-ls_z; | 218 | hh=body_h-ls_z; |
219 | translate([0,0,ls_z-lever_thickness/2]) | 219 | translate([0,0,ls_z-lever_thickness/2]) |
220 | mirror([0,1,0]) cube(size=[fsw,longwing-hh+lever_thickness/sqrt(2),hh+lever_thickness/2]); | 220 | mirror([0,1,0]) cube(size=[fsw,longwing-hh+lever_thickness/sqrt(2),hh+lever_thickness/2]); |
221 | hhh=ls_z; | 221 | hhh=ls_z; |
222 | translate([0,0,0]) | 222 | translate([0,0,0]) |
223 | mirror([0,1,0]) cube(size=[fsw,longwing-hhh+lever_thickness/sqrt(2),hhh+lever_thickness/2]); | 223 | mirror([0,1,0]) cube(size=[fsw,longwing-hhh+lever_thickness/sqrt(2),hhh+lever_thickness/2]); |
224 | } | 224 | } |
225 | } | 225 | } |
226 | translate([0,-longwing,ls_z]) rotate([0,-90,0]) { | 226 | translate([0,-longwing,ls_z]) rotate([0,-90,0]) { |
227 | if(!tensioner) finger_indent(d=lever_thickness-1,r=15); else { | 227 | if(!tensioner) finger_indent(d=lever_thickness-1,r=15); else { |
228 | mirror([0,0,1]) { | 228 | mirror([0,0,1]) { |
229 | translate([0,0,st_thickshell]) | 229 | translate([0,0,st_thickshell]) |
230 | hull() for(o=[0,spring_d]) translate([0,-o,0]) | 230 | hull() for(o=[0,spring_d]) translate([0,-o,0]) |
231 | rotate([0,0,30]) | 231 | rotate([0,0,30]) |
232 | cylinder(d=st_nut_d+st_nut_d_tolerance,h=st_nut_h+st_nut_h_tolerance,$fn=6); | 232 | cylinder(d=st_nut_d+st_nut_d_tolerance,h=st_nut_h+st_nut_h_tolerance,$fn=6); |
233 | translate([0,0,-1]) cylinder(d=st_screw_d+st_screw_d_tolerance,h=fsw+2,$fn=fnd*(st_screw_d+st_screw_d_tolerance)); | 233 | translate([0,0,-1]) cylinder(d=st_screw_d+st_screw_d_tolerance,h=fsw+2,$fn=fnd*(st_screw_d+st_screw_d_tolerance)); |
234 | bigd = spring_d+spring_d_clearance; | 234 | bigd = spring_d+spring_d_clearance; |
235 | hf = (bigd-st_screw_d-st_screw_d_tolerance)/2; | 235 | hf = (bigd-st_screw_d-st_screw_d_tolerance)/2; |
236 | translate([0,0,st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell-epsilon]) | 236 | translate([0,0,st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell-epsilon]) |
237 | cylinder(d1=st_screw_d+st_screw_d_tolerance,d2=bigd, | 237 | cylinder(d1=st_screw_d+st_screw_d_tolerance,d2=bigd, |
238 | h=hf+epsilon, $fn=fnd*bigd); | 238 | h=hf+epsilon, $fn=fnd*bigd); |
239 | translate([0,0,st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+hf-epsilon]) | 239 | translate([0,0,st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+hf-epsilon]) |
240 | cylinder(d=bigd,h=fsw+1,$fn=fnd*bigd); | 240 | cylinder(d=bigd,h=fsw+1,$fn=fnd*bigd); |
241 | } | 241 | } |
242 | } | 242 | } |
243 | } | 243 | } |
244 | } // translate | 244 | } // translate |
245 | 245 | ||
246 | // pushfit bracket | 246 | // pushfit bracket |
247 | translate([0,0,filament_elevation]) | 247 | translate([0,0,filament_elevation]) |
248 | rotate([0,0,45]) translate([pulley_d/2,0,0]) | 248 | rotate([0,0,45]) translate([pulley_d/2,0,0]) |
249 | rotate([-90,0,0]) | 249 | rotate([-90,0,0]) |
250 | translate([0,0,mount_d/sqrt(2)/2+mount_screw_d-gearbox_d/2/*TODO:*/]) { | 250 | translate([0,0,mount_d/sqrt(2)/2+mount_screw_d-gearbox_d/2/*TODO:*/]) { |
251 | pfb2a = pf_d(pf)+2*pf_shell; pfba = pfb2a/2; | 251 | pfb2a = pf_d(pf)+2*pf_shell; pfba = pfb2a/2; |
252 | pfbd = pfb2a/cos(30); | 252 | pfbd = pfb2a/cos(30); |
253 | pfbs = pfb2a*tan(30); | 253 | pfbs = pfb2a*tan(30); |
254 | pfbl = pf_h(pf)+gearbox_d/2/*TODO:*/; | 254 | pfbl = pf_h(pf)+gearbox_d/2/*TODO:*/; |
255 | cylinder(d=pfbd,h=pfbl,$fn=6); | 255 | cylinder(d=pfbd,h=pfbl,$fn=6); |
256 | translate([-pfbs/2,0,0]) { | 256 | translate([-pfbs/2,0,0]) { |
257 | hull() { | 257 | hull() { |
258 | translate([0,-pfba,0]) cube(size=[pfbs,pfb2a,pfbl]); | 258 | translate([0,-pfba,0]) cube(size=[pfbs,pfb2a,pfbl]); |
259 | cube(size=[pfbs,filament_elevation,pfbl-filament_elevation+pfba]); | 259 | cube(size=[pfbs,filament_elevation,pfbl-filament_elevation+pfba]); |
260 | mirror([0,1,0]) | 260 | mirror([0,1,0]) |
261 | cube(size=[pfbs,body_h-filament_elevation,pfbl-body_h+filament_elevation+pfba]); | 261 | cube(size=[pfbs,body_h-filament_elevation,pfbl-body_h+filament_elevation+pfba]); |
262 | } | 262 | } |
263 | } | 263 | } |
264 | } | 264 | } |
265 | }//union (first child of difference) | 265 | }//union (first child of difference) |
266 | 266 | ||
267 | // protrusion | 267 | // protrusion |
268 | translate([0,0,-1]) | 268 | translate([0,0,-1]) |
269 | cylinder(d=protrusion_d+protrusion_tolerance_h,h=protrusion_h+protrusion_tolerance_v+1,$fn=fnd*(protrusion_d+protrusion_tolerance_h)); | 269 | cylinder(d=protrusion_d+protrusion_tolerance_h,h=protrusion_h+protrusion_tolerance_v+1,$fn=fnd*(protrusion_d+protrusion_tolerance_h)); |
270 | // mount screw holes | 270 | // mount screw holes |
271 | for(zr=[0:90:359]) rotate([0,0,zr]) translate([mount_d/2,0,0]) { | 271 | for(zr=[0:90:359]) rotate([0,0,zr]) translate([mount_d/2,0,0]) { |
272 | translate([0,0,mount_screw_l-mounthole_depth/2-(bridges?layer_height:-epsilon)]) | 272 | translate([0,0,mount_screw_l-mounthole_depth/2-(bridges?layer_height:-epsilon)]) |
273 | mirror([0,0,1]) | 273 | mirror([0,0,1]) |