author | Michael Krelin <hacker@klever.net> | 2018-08-21 18:00:23 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2018-08-21 18:00:23 (UTC) |
commit | cbfb4ceebad88f7c43ae862f863857074da462bd (patch) (unidiff) | |
tree | 7e4a31f3a1e490d6efcac3d01112109eeec094e0 /another.scad | |
parent | eb49701c13f76640936e7a2a7a138bd92617b147 (diff) | |
download | extrudery-cbfb4ceebad88f7c43ae862f863857074da462bd.zip extrudery-cbfb4ceebad88f7c43ae862f863857074da462bd.tar.gz extrudery-cbfb4ceebad88f7c43ae862f863857074da462bd.tar.bz2 |
typo fix
-rw-r--r-- | another.scad | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/another.scad b/another.scad index 6ef7299..87121d2 100644 --- a/another.scad +++ b/another.scad | |||
@@ -354,134 +354,134 @@ module the_extruder( | |||
354 | square([sqrt(pow(gearbox_d/2,2)+pow(longwing-lever_thickness/2,2))+1, | 354 | square([sqrt(pow(gearbox_d/2,2)+pow(longwing-lever_thickness/2,2))+1, |
355 | ls_h]); | 355 | ls_h]); |
356 | translate([-mount_d/2,0,0]) | 356 | translate([-mount_d/2,0,0]) |
357 | cylinder(d=gearbox_d-mount_d,h=ls_h+2,center=true,$fn=fnd*(gearbox_d-mount_d)); | 357 | cylinder(d=gearbox_d-mount_d,h=ls_h+2,center=true,$fn=fnd*(gearbox_d-mount_d)); |
358 | }//difference translate | 358 | }//difference translate |
359 | 359 | ||
360 | rotate([0,0,-45]) | 360 | rotate([0,0,-45]) |
361 | translate([0,0,ls_z-ls_h/2]) | 361 | translate([0,0,ls_z-ls_h/2]) |
362 | cube(size=[gearbox_d,gearbox_d,lever_thickness+lever_v_clearance]); | 362 | cube(size=[gearbox_d,gearbox_d,lever_thickness+lever_v_clearance]); |
363 | translate([0,0,ls_z-ls_h/2]) { | 363 | translate([0,0,ls_z-ls_h/2]) { |
364 | translate([mount_screwhead_d/2,0,0]) | 364 | translate([mount_screwhead_d/2,0,0]) |
365 | mirror([0,1,0]) | 365 | mirror([0,1,0]) |
366 | cube(size=[gearbox_d,gearbox_d/2+1,lever_thickness+lever_v_clearance]); | 366 | cube(size=[gearbox_d,gearbox_d/2+1,lever_thickness+lever_v_clearance]); |
367 | } | 367 | } |
368 | //translate([-mount_d/2,-longwing,filament_elevation]) | 368 | //translate([-mount_d/2,-longwing,filament_elevation]) |
369 | if(!tensioner) /* XXX: this seems to be bullshit, but it's so old, that it's historical bullshit */ | 369 | if(!tensioner) /* XXX: this seems to be bullshit, but it's so old, that it's historical bullshit */ |
370 | translate([mount_d/2,-longwing,filament_elevation]) | 370 | translate([mount_d/2,-longwing,filament_elevation]) |
371 | rotate([0,-90,0]) difference() { | 371 | rotate([0,-90,0]) difference() { |
372 | cylinder(d=spring_d+spring_d_clearance,h=spring_lc+spring_dl,$fn=fnd*(spring_d+spring_d_clearance)); | 372 | cylinder(d=spring_d+spring_d_clearance,h=spring_lc+spring_dl,$fn=fnd*(spring_d+spring_d_clearance)); |
373 | translate([0,0,spring_lc+spring_dl]) sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4); | 373 | translate([0,0,spring_lc+spring_dl]) sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4); |
374 | } | 374 | } |
375 | 375 | ||
376 | }//difference | 376 | }//difference |
377 | 377 | ||
378 | if(supports) intersection() { | 378 | if(supports) intersection() { |
379 | difference() { | 379 | difference() { |
380 | translate([0,0,ls_z-ls_h/2-epsilon]) | 380 | translate([0,0,ls_z-ls_h/2-epsilon]) |
381 | cylinder(d=gearbox_d,h=ls_h+2*epsilon,$fn=fnd*gearbox_d); | 381 | cylinder(d=gearbox_d,h=ls_h+2*epsilon,$fn=fnd*gearbox_d); |
382 | cylinder(d=pulley_d+pulley_d_clearance,h=body_h+1,$fn=fnd*(pulley_d+pulley_d_clearance)); | 382 | cylinder(d=pulley_d+pulley_d_clearance,h=body_h+1,$fn=fnd*(pulley_d+pulley_d_clearance)); |
383 | } | 383 | } |
384 | // supports | 384 | // supports |
385 | // TODO: hardcoded stuff below… | 385 | // TODO: hardcoded stuff below… |
386 | if(false) { // parallel | 386 | if(false) { // parallel |
387 | for(y=[-gearbox_d:4:gearbox_d]) | 387 | for(y=[-gearbox_d:4:gearbox_d]) |
388 | translate([0,y-extrusion_width/2,0]) | 388 | translate([0,y-extrusion_width/2,0]) |
389 | cube(size=[gearbox_d,extrusion_width,body_h]); | 389 | cube(size=[gearbox_d,extrusion_width,body_h]); |
390 | }else{ // radial | 390 | }else{ // radial |
391 | for(zr=[-65:(65+50)/7:50]) | 391 | for(zr=[-65:(65+50)/7:50]) |
392 | rotate([0,0,zr]) translate([0,-extrusion_width/2,0]) | 392 | rotate([0,0,zr]) translate([0,-extrusion_width/2,0]) |
393 | cube(size=[gearbox_d,extrusion_width,body_h]); | 393 | cube(size=[gearbox_d,extrusion_width,body_h]); |
394 | } | 394 | } |
395 | } | 395 | } |
396 | 396 | ||
397 | }//body module | 397 | }//body module |
398 | 398 | ||
399 | module springpad() { | 399 | module springpad() { |
400 | smalld=st_screw_d+st_screw_d_tolerance+2*extrusion_width; | 400 | smalld=st_screw_d+st_screw_d_tolerance+2*extrusion_width; |
401 | bigd = spring_d+spring_d_clearance/2; | 401 | bigd = spring_d+spring_d_clearance/2; |
402 | hf = (bigd-smalld)/2; | 402 | hf = (bigd-smalld)/2; |
403 | translate([-gearbox_d/2+st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+1,-longwing,filament_elevation]) | 403 | translate([-gearbox_d/2+st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+1,-longwing,filament_elevation]) |
404 | rotate([0,90,0]) difference() { | 404 | rotate([0,90,0]) difference() { |
405 | union() { | 405 | union() { |
406 | cylinder(d1=smalld,d2=bigd,h=hf,$fn=fnd*bigd); | 406 | cylinder(d1=smalld,d2=bigd,h=hf,$fn=fnd*bigd); |
407 | translate([0,0,hf-epsilon]) | 407 | translate([0,0,hf-epsilon]) |
408 | cylinder(d=bigd,h=hf*2,$fn=fnd*bigd); | 408 | cylinder(d=bigd,h=hf*2,$fn=fnd*bigd); |
409 | translate([0,0,3*hf]) | 409 | translate([0,0,3*hf]) |
410 | sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4); | 410 | sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4); |
411 | } | 411 | } |
412 | translate([0,0,-epsilon]) | 412 | translate([0,0,-epsilon]) |
413 | cylinder(d=st_screw_d+st_screw_d_tolerance,h=2*hf+epsilon,$fn=fnd*(st_screw_d+st_screw_d_tolerance)); | 413 | cylinder(d=st_screw_d+st_screw_d_tolerance,h=2*hf+epsilon,$fn=fnd*(st_screw_d+st_screw_d_tolerance)); |
414 | } | 414 | } |
415 | } | 415 | } |
416 | 416 | ||
417 | module knob() { | 417 | module knob() { |
418 | ch = knob_indent_d/2; | 418 | ch = knob_indent_d/2; |
419 | translate([0,0,body_h+epsilon]) { | 419 | translate([0,0,body_h+epsilon]) { |
420 | mirror([0,0,1]) translate([0,0,-epsilon]) { | 420 | mirror([0,0,1]) translate([0,0,-epsilon]) { |
421 | difference() { | 421 | difference() { |
422 | cylinder(d=pulley_d,h=knob_bore_l,$fn=fnd*pulley_d); | 422 | cylinder(d=pulley_d,h=knob_bore_l,$fn=fnd*pulley_d); |
423 | translate([0,0,-1]) difference() { | 423 | translate([0,0,-1]) difference() { |
424 | cylinder(d=bore_d+knob_bore_d_tolerance,h=knob_bore_l+2); | 424 | cylinder(d=bore_d+knob_bore_d_tolerance,h=knob_bore_l+2); |
425 | translate([-bore_d/2-1,bore_dd-bore_d/2+knob_bore_d_tolerance/2,-1]) | 425 | translate([-bore_d/2-1,bore_dd-bore_d/2+knob_bore_d_tolerance/2,-1]) |
426 | cube([bore_d+2,bore_d/2,knob_bore_l+4]); | 426 | cube([bore_d+2,bore_d/2,knob_bore_l+4]); |
427 | } | 427 | } |
428 | } | 428 | } |
429 | } | 429 | } |
430 | difference() { | 430 | difference() { |
431 | union() { | 431 | union() { |
432 | cylinder(d1=gearbox_d-2*ch,d2=gearbox_d,h=ch+epsilon,$fn=fnd*gearbox_d); | 432 | cylinder(d1=gearbox_d-2*ch,d2=gearbox_d,h=ch+epsilon,$fn=fnd*gearbox_d); |
433 | translate([0,0,ch]) | 433 | translate([0,0,ch]) |
434 | cylinder(d=gearbox_d,h=knob_h-2*ch+epsilon,$fn=fnd*gearbox_d); | 434 | cylinder(d=gearbox_d,h=knob_h-2*ch+epsilon,$fn=fnd*gearbox_d); |
435 | translate([0,0,knob_h-ch]) | 435 | translate([0,0,knob_h-ch]) |
436 | cylinder(d1=gearbox_d,d2=gearbox_d-2*ch,h=ch,$fn=fnd*gearbox_d); | 436 | cylinder(d1=gearbox_d,d2=gearbox_d-2*ch,h=ch,$fn=fnd*gearbox_d); |
437 | } | 437 | } |
438 | for(a=[0:360/knob_indents:359]) rotate([0,0,a]) | 438 | for(a=[0:360/knob_indents:359]) rotate([0,0,a]) |
439 | translate([0,gearbox_d/2,-1]) | 439 | translate([0,gearbox_d/2,-1]) |
440 | cylinder(d=knob_indent_d,h=knob_h+2,$fn=fnd*knob_indent_d); | 440 | cylinder(d=knob_indent_d,h=knob_h+2,$fn=fnd*knob_indent_d); |
441 | } | 441 | } |
442 | } | 442 | } |
443 | }//knob module | 443 | }//knob module |
444 | 444 | ||
445 | module debug() { | 445 | module debug() { |
446 | difference() { | 446 | difference() { |
447 | children(); | 447 | children(); |
448 | if(debug) { | 448 | if(debug) { |
449 | // spring tensioner debug cutout | 449 | // spring tensioner debug cutout |
450 | if(tensioner) // TODO: collaps copypasted transformations | 450 | if(tensioner) // TODO: collapse copypasted transformations |
451 | translate([-gearbox_d/2,0,0]) | 451 | translate([-gearbox_d/2,0,0]) |
452 | translate([0,-longwing,ls_z]) rotate([0,-90,0]) | 452 | translate([0,-longwing,ls_z]) rotate([0,-90,0]) |
453 | translate([0,-lever_thickness/2-1,-gearbox_d]) | 453 | translate([0,-lever_thickness/2-1,-gearbox_d]) |
454 | cube(size=[body_h/2+1,lever_thickness/2+1,gearbox_d+2]); | 454 | cube(size=[body_h/2+1,lever_thickness/2+1,gearbox_d+2]); |
455 | // lever axis debug cutout | 455 | // lever axis debug cutout |
456 | translate([mount_d/2,0,-1]) | 456 | translate([mount_d/2,0,-1]) |
457 | rotate([0,0,-45]) | 457 | rotate([0,0,-45]) |
458 | cube(size=[gearbox_d-mount_d,gearbox_d-mount_d,body_h+knob_h+2]); | 458 | cube(size=[gearbox_d-mount_d,gearbox_d-mount_d,body_h+knob_h+2]); |
459 | // idler debug cutout | 459 | // idler debug cutout |
460 | translate([0,0,ls_z]) | 460 | translate([0,0,ls_z]) |
461 | place_idler() | 461 | place_idler() |
462 | rotate([0,0,-45]) | 462 | rotate([0,0,-45]) |
463 | translate([0,0,-lever_thickness/2-epsilon]) | 463 | translate([0,0,-lever_thickness/2-epsilon]) |
464 | cube(size=[(idler_d+idler_clearance)/2,(idler_d+idler_clearance)/2, | 464 | cube(size=[(idler_d+idler_clearance)/2,(idler_d+idler_clearance)/2, |
465 | lever_thickness+2*epsilon]); | 465 | lever_thickness+2*epsilon]); |
466 | }//if debug | 466 | }//if debug |
467 | }//difference | 467 | }//difference |
468 | } | 468 | } |
469 | 469 | ||
470 | mirrorleft() | 470 | mirrorleft() |
471 | debug() | 471 | debug() |
472 | if(what=="lever") color("green",0.7) lever(); | 472 | if(what=="lever") color("green",0.7) lever(); |
473 | else if(what=="body") color("yellow",0.7) body(); | 473 | else if(what=="body") color("yellow",0.7) body(); |
474 | else if(what=="knob") color("red",0.7) knob(); | 474 | else if(what=="knob") color("red",0.7) knob(); |
475 | else if(what=="springpad") color("blue",0.7) springpad(); | 475 | else if(what=="springpad") color("blue",0.7) springpad(); |
476 | else if(what=="both") { | 476 | else if(what=="both") { |
477 | color("green",0.7) lever(); | 477 | color("green",0.7) lever(); |
478 | color("yellow",0.7) body(); | 478 | color("yellow",0.7) body(); |
479 | }else{ | 479 | }else{ |
480 | color("green",0.7) lever(); | 480 | color("green",0.7) lever(); |
481 | color("yellow",0.7) body(); | 481 | color("yellow",0.7) body(); |
482 | color("red",0.7) knob(); | 482 | color("red",0.7) knob(); |
483 | color("blue",0.7) springpad(); | 483 | color("blue",0.7) springpad(); |
484 | } | 484 | } |
485 | } | 485 | } |
486 | 486 | ||
487 | the_extruder(what="*",left=false,debug=true); | 487 | the_extruder(what="*",left=false,debug=true); |