summaryrefslogtreecommitdiff
path: root/another.scad
Unidiff
Diffstat (limited to 'another.scad') (more/less context) (ignore whitespace changes)
-rw-r--r--another.scad2
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
@@ -426,49 +426,49 @@ module the_extruder(
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();