author | Michael Krelin <hacker@klever.net> | 2018-08-31 20:47:26 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2018-08-31 20:47:26 (UTC) |
commit | 2357cec93756daaa7aee810792c1fbb205cdb151 (patch) (unidiff) | |
tree | 23b1615c66969538e6c11f79bf0a837f6a6fb37c /another.scad | |
parent | f2ae6a17ee134663fc78e930e2348c466fd97540 (diff) | |
download | extrudery-2357cec93756daaa7aee810792c1fbb205cdb151.zip extrudery-2357cec93756daaa7aee810792c1fbb205cdb151.tar.gz extrudery-2357cec93756daaa7aee810792c1fbb205cdb151.tar.bz2 |
debug cutouts improvements
-rw-r--r-- | another.scad | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/another.scad b/another.scad index 5ea0845..116344e 100644 --- a/another.scad +++ b/another.scad | |||
@@ -441,52 +441,52 @@ module the_extruder( | |||
441 | for(a=[0:360/knob_indents:359]) rotate([0,0,a]) | 441 | for(a=[0:360/knob_indents:359]) rotate([0,0,a]) |
442 | translate([0,gearbox_d/2,-1]) | 442 | translate([0,gearbox_d/2,-1]) |
443 | cylinder(d=knob_indent_d,h=knob_h+2,$fn=fnd*knob_indent_d); | 443 | cylinder(d=knob_indent_d,h=knob_h+2,$fn=fnd*knob_indent_d); |
444 | } | 444 | } |
445 | } | 445 | } |
446 | }//knob module | 446 | }//knob module |
447 | 447 | ||
448 | module debug() { | 448 | module debug() { |
449 | difference() { | 449 | difference() { |
450 | children(); | 450 | children(); |
451 | if(debug) { | 451 | if(debug) { |
452 | // spring tensioner debug cutout | 452 | // spring tensioner debug cutout |
453 | translate([-gearbox_d/2,-longwing,ls_z]) rotate([0,-90,0]) | 453 | translate([-gearbox_d/2,-longwing,ls_z]) rotate([0,-90,0]) |
454 | translate([0,-lever_thickness/2-1,-gearbox_d]) | 454 | translate([0,-lever_thickness/2-1,-gearbox_d]) |
455 | cube(size=[body_h/2+1,lever_thickness/2+1,gearbox_d+2]); | 455 | cube(size=[body_h/2+1,lever_thickness/2+1,gearbox_d+2]); |
456 | // lever axis debug cutout | 456 | // lever axis debug cutout |
457 | translate([mount_d/2,0,-1]) | 457 | translate([mount_d/2,0,-1]) |
458 | rotate([0,0,-45]) | 458 | rotate([0,0,-45]) |
459 | cube(size=[gearbox_d-mount_d,gearbox_d-mount_d,body_h+knob_h+2]); | 459 | cube(size=[gearbox_d-mount_d,gearbox_d-mount_d,body_h+knob_h+2]); |
460 | // idler debug cutout | 460 | // idler debug cutout |
461 | translate([0,0,ls_z]) | 461 | translate([0,0,ls_z]) |
462 | place_idler() | 462 | place_idler() |
463 | rotate([0,0,-45]) | 463 | rotate([0,0,-45]) |
464 | translate([0,0,-lever_thickness/2-epsilon]) | 464 | translate([0,0,-lever_thickness/2-epsilon]) |
465 | cube(size=[(idler_d+idler_clearance)/2,(idler_d+idler_clearance)/2, | 465 | cube(size=[lsd*sqrt(2)/2+1,lsd*sqrt(2)/2+1, |
466 | lever_thickness+2*epsilon]); | 466 | lever_thickness+2*epsilon]); |
467 | // pushfit debug cutout | 467 | // pushfit debug cutout |
468 | place_idler() | 468 | place_idler() |
469 | translate([-idler_d/2+filament_offset,0,ls_z]) | 469 | translate([-idler_d/2+filament_offset,0,ls_z]) |
470 | cube(size=[gearbox_d/2,gearbox_d/2+pf_h(pf),body_h-ls_z+1]); | 470 | cube(size=[gearbox_d/2,gearbox_d/2+pf_h(pf),body_h-ls_z+knob_h+1]); |
471 | }//if debug | 471 | }//if debug |
472 | }//difference | 472 | }//difference |
473 | } | 473 | } |
474 | 474 | ||
475 | mirrorleft() | 475 | mirrorleft() |
476 | debug() | 476 | debug() |
477 | if(what=="lever") color("green",0.7) lever(); | 477 | if(what=="lever") color("green",0.7) lever(); |
478 | else if(what=="body") color("yellow",0.7) body(); | 478 | else if(what=="body") color("yellow",0.7) body(); |
479 | else if(what=="knob") color("red",0.7) knob(); | 479 | else if(what=="knob") color("red",0.7) knob(); |
480 | else if(what=="springpad") color("blue",0.7) springpad(); | 480 | else if(what=="springpad") color("blue",0.7) springpad(); |
481 | else if(what=="both") { | 481 | else if(what=="both") { |
482 | color("green",0.7) lever(); | 482 | color("green",0.7) lever(); |
483 | color("yellow",0.7) body(); | 483 | color("yellow",0.7) body(); |
484 | }else{ | 484 | }else{ |
485 | color("green",0.7) lever(); | 485 | color("green",0.7) lever(); |
486 | color("yellow",0.7) body(); | 486 | color("yellow",0.7) body(); |
487 | color("red",0.7) knob(); | 487 | color("red",0.7) knob(); |
488 | color("blue",0.7) springpad(); | 488 | color("blue",0.7) springpad(); |
489 | } | 489 | } |
490 | } | 490 | } |
491 | 491 | ||
492 | the_extruder(what="*",left=false,debug=true); | 492 | the_extruder(what="*",left=false,debug=true); |