author | Michael Krelin <hacker@klever.net> | 2018-08-02 10:35:38 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2018-08-02 10:35:38 (UTC) |
commit | b717362a236ec1a95d54e7106f11e4f3e3e85b76 (patch) (unidiff) | |
tree | 0ec8307df6bc8d1eb888d45c8656299df27cb1f9 | |
parent | df23f0042d72bfcc7ba1638a2209545cbfe89825 (diff) | |
download | extrudery-b717362a236ec1a95d54e7106f11e4f3e3e85b76.zip extrudery-b717362a236ec1a95d54e7106f11e4f3e3e85b76.tar.gz extrudery-b717362a236ec1a95d54e7106f11e4f3e3e85b76.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 844dc3b..cd084ce 100644 --- a/another.scad +++ b/another.scad | |||
@@ -244,97 +244,97 @@ module the_extruder( | |||
244 | translate([0,0,mount_screw_l-mounthole_depth/2]) | 244 | translate([0,0,mount_screw_l-mounthole_depth/2]) |
245 | cylinder(d=mount_screwhead_d,h=body_h+1,$fn=2*PI*mount_screwhead_d); | 245 | cylinder(d=mount_screwhead_d,h=body_h+1,$fn=2*PI*mount_screwhead_d); |
246 | }//for | 246 | }//for |
247 | // pushfit | 247 | // pushfit |
248 | translate([0,0,filament_elevation]) | 248 | translate([0,0,filament_elevation]) |
249 | rotate([0,0,45]) translate([pulley_d/2,0,0]) | 249 | rotate([0,0,45]) translate([pulley_d/2,0,0]) |
250 | rotate([-90,0,0]) | 250 | rotate([-90,0,0]) |
251 | translate([0,0,mount_d/sqrt(2)/2+mount_screw_d+epsilon]) | 251 | translate([0,0,mount_d/sqrt(2)/2+mount_screw_d+epsilon]) |
252 | rotate([0,0,180]) { | 252 | rotate([0,0,180]) { |
253 | pushfit(pf); | 253 | pushfit(pf); |
254 | cylinder(d=filament_guide_d,h=gearbox_d,center=true,$fn=2*PI*filament_guide_d); | 254 | cylinder(d=filament_guide_d,h=gearbox_d,center=true,$fn=2*PI*filament_guide_d); |
255 | translate([0,-filament_guide_d/2/sqrt(2),0]) | 255 | translate([0,-filament_guide_d/2/sqrt(2),0]) |
256 | rotate([0,0,45]) | 256 | rotate([0,0,45]) |
257 | cube(size=[filament_guide_d/2,filament_guide_d/2,gearbox_d],center=true); | 257 | cube(size=[filament_guide_d/2,filament_guide_d/2,gearbox_d],center=true); |
258 | } | 258 | } |
259 | // pulley | 259 | // pulley |
260 | cylinder(d=pulley_d+pulley_clearance,h=body_h+1,$fn=2*PI*(pulley_d+pulley_clearance)); | 260 | cylinder(d=pulley_d+pulley_clearance,h=body_h+1,$fn=2*PI*(pulley_d+pulley_clearance)); |
261 | // leverspace | 261 | // leverspace |
262 | hull() for(x=[0,gearbox_d]) | 262 | hull() for(x=[0,gearbox_d]) |
263 | rotate([0,0,45]) | 263 | rotate([0,0,45]) |
264 | translate([x,0,ls_z-ls_h/2]) | 264 | translate([x,0,ls_z-ls_h/2]) |
265 | cylinder(d=idler_d+idler_clearance,h=ls_h,$fn=2*PI*idler_d); | 265 | cylinder(d=idler_d+idler_clearance,h=ls_h,$fn=2*PI*idler_d); |
266 | 266 | ||
267 | a=cos(45)*(pulley_d+idler_d)/2; | 267 | a=cos(45)*(pulley_d+idler_d)/2; |
268 | b=mount_d/2-a; | 268 | b=mount_d/2-a; |
269 | x=sqrt(pow(a,2)+pow(b,2)); | 269 | x=sqrt(pow(a,2)+pow(b,2)); |
270 | translate([mount_d/2,0,ls_z]) | 270 | translate([mount_d/2,0,ls_z]) |
271 | intersection() { | 271 | intersection() { |
272 | r = x+idler_d/2+1;/* TODO: */ | 272 | r = x+idler_d/2+1;/* TODO: */ |
273 | cylinder(r=r,h=ls_h,center=true); | 273 | cylinder(r=r,h=ls_h,center=true); |
274 | translate([-r-1,0,-1]) cube(size=[2*r+2,r+1,ls_h+2]); | 274 | translate([-r-1,0,-1]) cube(size=[2*r+2,r+1,ls_h+2]); |
275 | } | 275 | } |
276 | 276 | ||
277 | rotate([0,0,-45]) | 277 | rotate([0,0,-45]) |
278 | translate([0,0,ls_z-ls_h/2]) | 278 | translate([0,0,ls_z-ls_h/2]) |
279 | cube(size=[gearbox_d,gearbox_d,lever_thickness+lever_v_clearance]); | 279 | cube(size=[gearbox_d,gearbox_d,lever_thickness+lever_v_clearance]); |
280 | translate([0,0,ls_z-ls_h/2]) { | 280 | translate([0,0,ls_z-ls_h/2]) { |
281 | translate([mount_screwhead_d/2,0,0]) | 281 | translate([mount_screwhead_d/2,0,0]) |
282 | mirror([0,1,0]) | 282 | mirror([0,1,0]) |
283 | cube(size=[gearbox_d,gearbox_d/2+1,lever_thickness+lever_v_clearance]); | 283 | cube(size=[gearbox_d,gearbox_d/2+1,lever_thickness+lever_v_clearance]); |
284 | } | 284 | } |
285 | //translate([-mount_d/2,-longwing,filament_elevation]) | 285 | //translate([-mount_d/2,-longwing,filament_elevation]) |
286 | if(!tensioner) translate([mount_d/2,-longwing,filament_elevation]) | 286 | if(!tensioner) translate([mount_d/2,-longwing,filament_elevation]) |
287 | rotate([0,-90,0]) difference() { | 287 | rotate([0,-90,0]) difference() { |
288 | cylinder(d=spring_d+spring_d_clearance,h=spring_lc+spring_dl,$fn=PI*spring_d); | 288 | cylinder(d=spring_d+spring_d_clearance,h=spring_lc+spring_dl,$fn=PI*spring_d); |
289 | translate([0,0,spring_lc+spring_dl]) sphere(d=spring_d*3/4,$fn=PI*spring_d); | 289 | translate([0,0,spring_lc+spring_dl]) sphere(d=spring_d*3/4,$fn=PI*spring_d); |
290 | } | 290 | } |
291 | //sphere(d=spring_d*3/4,$fn=PI*spring_d); | 291 | //sphere(d=spring_d*3/4,$fn=PI*spring_d); |
292 | *difference() { | 292 | * difference() { |
293 | // spring support | 293 | // spring support |
294 | translate([0,-longwing,filament_elevation]) | 294 | translate([0,-longwing,filament_elevation]) |
295 | sphere(d=spring_d*3/4,$fn=PI*spring_d); | 295 | sphere(d=spring_d*3/4,$fn=PI*spring_d); |
296 | } | 296 | } |
297 | 297 | ||
298 | }//difference | 298 | }//difference |
299 | 299 | ||
300 | if(supports) intersection() { | 300 | if(supports) intersection() { |
301 | difference() { | 301 | difference() { |
302 | translate([0,0,ls_z-ls_h/2-epsilon]) | 302 | translate([0,0,ls_z-ls_h/2-epsilon]) |
303 | cylinder(d=gearbox_d,h=ls_h+2*epsilon,$fn=2*PI*gearbox_d); | 303 | cylinder(d=gearbox_d,h=ls_h+2*epsilon,$fn=2*PI*gearbox_d); |
304 | cylinder(d=pulley_d+pulley_clearance,h=body_h+1,$fn=2*PI*(pulley_d+pulley_clearance)); | 304 | cylinder(d=pulley_d+pulley_clearance,h=body_h+1,$fn=2*PI*(pulley_d+pulley_clearance)); |
305 | } | 305 | } |
306 | // supports | 306 | // supports |
307 | // TODO: hardcoded stuff below… | 307 | // TODO: hardcoded stuff below… |
308 | if(false) { // parallel | 308 | if(false) { // parallel |
309 | for(y=[-gearbox_d:4:gearbox_d]) | 309 | for(y=[-gearbox_d:4:gearbox_d]) |
310 | translate([0,y-extrusion_width/2,0]) | 310 | translate([0,y-extrusion_width/2,0]) |
311 | cube(size=[gearbox_d,extrusion_width,body_h]); | 311 | cube(size=[gearbox_d,extrusion_width,body_h]); |
312 | }else{ // radial | 312 | }else{ // radial |
313 | for(zr=[-65:(65+50)/7:50]) | 313 | for(zr=[-65:(65+50)/7:50]) |
314 | rotate([0,0,zr]) translate([0,-extrusion_width/2,0]) | 314 | rotate([0,0,zr]) translate([0,-extrusion_width/2,0]) |
315 | cube(size=[gearbox_d,extrusion_width,body_h]); | 315 | cube(size=[gearbox_d,extrusion_width,body_h]); |
316 | } | 316 | } |
317 | } | 317 | } |
318 | 318 | ||
319 | }//body module | 319 | }//body module |
320 | 320 | ||
321 | module springpad() { | 321 | module springpad() { |
322 | smalld=st_screw_d+extrusion_width; | 322 | smalld=st_screw_d+extrusion_width; |
323 | bigd = spring_d+spring_d_clearance/2; | 323 | bigd = spring_d+spring_d_clearance/2; |
324 | hf = (bigd-smalld)/2; | 324 | hf = (bigd-smalld)/2; |
325 | translate([-gearbox_d/2+st_shell+st_nut_h+st_shell+smalld,-longwing,filament_elevation]) | 325 | translate([-gearbox_d/2+st_shell+st_nut_h+st_shell+smalld,-longwing,filament_elevation]) |
326 | rotate([0,90,0]) difference() { | 326 | rotate([0,90,0]) difference() { |
327 | union() { | 327 | union() { |
328 | cylinder(d1=smalld,d2=bigd,h=hf,$fn=bigd*PI*2); | 328 | cylinder(d1=smalld,d2=bigd,h=hf,$fn=bigd*PI*2); |
329 | translate([0,0,hf-epsilon]) | 329 | translate([0,0,hf-epsilon]) |
330 | cylinder(d=bigd,h=hf*2,$fn=bigd*PI*2); | 330 | cylinder(d=bigd,h=hf*2,$fn=bigd*PI*2); |
331 | } | 331 | } |
332 | cylinder(d=st_screw_d,h=2*hf,$fn=st_screw_d*PI*2); | 332 | cylinder(d=st_screw_d,h=2*hf,$fn=st_screw_d*PI*2); |
333 | } | 333 | } |
334 | } | 334 | } |
335 | 335 | ||
336 | module knob() { | 336 | module knob() { |
337 | ch = knob_indent_d/2; | 337 | ch = knob_indent_d/2; |
338 | translate([0,0,body_h+epsilon]) { | 338 | translate([0,0,body_h+epsilon]) { |
339 | mirror([0,0,1]) translate([0,0,-epsilon]) { | 339 | mirror([0,0,1]) translate([0,0,-epsilon]) { |
340 | difference() { | 340 | difference() { |