summaryrefslogtreecommitdiff
Unidiff
Diffstat (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 2825c07..f3305a1 100644
--- a/another.scad
+++ b/another.scad
@@ -418,92 +418,92 @@ module the_extruder(
418 } 418 }
419 } 419 }
420 420
421 module knob() { 421 module knob() {
422 ch = knob_indent_d/2; 422 ch = knob_indent_d/2;
423 knob_bore_l = body_h-protrusion_h-pulley_elevation-pulley_h-knob_v_clearance; 423 knob_bore_l = body_h-protrusion_h-pulley_elevation-pulley_h-knob_v_clearance;
424 translate([0,0,body_h+epsilon]) { 424 translate([0,0,body_h+epsilon]) {
425 mirror([0,0,1]) translate([0,0,-epsilon]) { 425 mirror([0,0,1]) translate([0,0,-epsilon]) {
426 difference() { 426 difference() {
427 cylinder(d=pulley_d,h=knob_bore_l,$fn=fnd*pulley_d); 427 cylinder(d=pulley_d,h=knob_bore_l,$fn=fnd*pulley_d);
428 translate([0,0,-1]) difference() { 428 translate([0,0,-1]) difference() {
429 cylinder(d=bore_d+knob_bore_d_tolerance,h=knob_bore_l+2); 429 cylinder(d=bore_d+knob_bore_d_tolerance,h=knob_bore_l+2);
430 translate([-bore_d/2-1,bore_dd-bore_d/2+knob_bore_d_tolerance/2,-1]) 430 translate([-bore_d/2-1,bore_dd-bore_d/2+knob_bore_d_tolerance/2,-1])
431 cube([bore_d+2,bore_d/2,knob_bore_l+4]); 431 cube([bore_d+2,bore_d/2,knob_bore_l+4]);
432 } 432 }
433 } 433 }
434 } 434 }
435 difference() { 435 difference() {
436 hull() { 436 hull() {
437 cylinder(d=gearbox_d-2*ch,h=knob_h,$fn=fnd*gearbox_d); 437 cylinder(d=gearbox_d-2*ch,h=knob_h,$fn=fnd*gearbox_d);
438 translate([0,0,ch]) 438 translate([0,0,ch])
439 cylinder(d=gearbox_d,h=knob_h-2*ch,$fn=fnd*gearbox_d); 439 cylinder(d=gearbox_d,h=knob_h-2*ch,$fn=fnd*gearbox_d);
440 } 440 }
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 translate([0,0,-body_h-epsilon]) knob_label(); 444 translate([0,0,-body_h-epsilon]) knob_label();
445 } 445 }
446 } 446 }
447 }//knob module 447 }//knob module
448 module knob_label() { 448 module knob_label() {
449 if(knob_label) { 449 if(knob_label) {
450 ll = len(knob_label); 450 ll = len(knob_label);
451 lsl = gearbox_d-knob_indent_d; 451 lsl = gearbox_d-knob_indent_d;
452 ts = knob_label_size?knob_label_size:min(lsl/ll,gearbox_d/4); 452 ts = knob_label_size?knob_label_size:min(lsl/ll,gearbox_d/4);
453 translate([0,0,body_h+epsilon+knob_h-knob_label_thickness]) 453 translate([0,0,body_h+epsilon+knob_h-knob_label_thickness])
454 linear_extrude(height=knob_label_thickness+epsilon,convexity=64) 454 linear_extrude(height=knob_label_thickness+epsilon,convexity=64)
455 mirror([left?0:1,0]) 455 mirror([left?0:1,0])
456 text(text=knob_label,size=ts,halign="center",valign="center",font="Arial Black"); 456 text(text=knob_label,size=ts,halign="center",valign="center",font="Arial Black");
457 }else sphere(d=epsilon); // to avoid makefile breakage 457 }else sphere(d=epsilon); // to avoid makefile breakage
458 } 458 }
459 459
460 module debug() { 460 module debug() {
461 difference() { 461 difference() {
462 children(); 462 children();
463 if(debug) { 463 if(debug) {
464 // spring tensioner debug cutout 464 // spring tensioner debug cutout
465 translate([-gearbox_d/2,-longwing,ls_z]) rotate([0,-90,0]) 465 translate([-gearbox_d/2,-longwing,ls_z]) rotate([0,-90,0])
466 translate([0,-lever_thickness/2-1,-gearbox_d]) 466 translate([0,-lever_thickness/2-1,-gearbox_d-1])
467 cube(size=[body_h/2+1,lever_thickness/2+1,gearbox_d+2]); 467 cube(size=[body_h/2+1,lever_thickness/2+1,gearbox_d+2]);
468 // lever axis debug cutout 468 // lever axis debug cutout
469 translate([mount_d/2,0,-1]) 469 translate([mount_d/2,0,-1])
470 rotate([0,0,-45]) 470 rotate([0,0,-45])
471 cube(size=[gearbox_d-mount_d,gearbox_d-mount_d,body_h+knob_h+2]); 471 cube(size=[gearbox_d-mount_d,gearbox_d-mount_d,body_h+knob_h+2]);
472 // idler debug cutout 472 // idler debug cutout
473 translate([0,0,ls_z]) 473 translate([0,0,ls_z])
474 place_idler() 474 place_idler()
475 rotate([0,0,-45]) 475 rotate([0,0,-45])
476 translate([0,0,-lever_thickness/2-epsilon]) 476 translate([0,0,-lever_thickness/2-epsilon])
477 cube(size=[lsd*sqrt(2)/2+1,lsd*sqrt(2)/2+1, 477 cube(size=[lsd*sqrt(2)/2+1,lsd*sqrt(2)/2+1,
478 lever_thickness+2*epsilon]); 478 lever_thickness+2*epsilon]);
479 // pushfit debug cutout 479 // pushfit debug cutout
480 place_idler() 480 place_idler()
481 translate([-idler_d/2+filament_offset,0,ls_z]) 481 translate([-idler_d/2+filament_offset,0,ls_z])
482 cube(size=[gearbox_d/2,gearbox_d/2+pf_h(pf),body_h-ls_z+knob_h+1]); 482 cube(size=[gearbox_d/2,gearbox_d/2+pf_h(pf),body_h-ls_z+knob_h+1]);
483 }//if debug 483 }//if debug
484 }//difference 484 }//difference
485 } 485 }
486 486
487 mirrorleft() 487 mirrorleft()
488 debug() 488 debug()
489 if(what=="lever") color("green",0.7) lever(); 489 if(what=="lever") color("green",0.7) lever();
490 else if(what=="body") color("yellow",0.7) body(); 490 else if(what=="body") color("yellow",0.7) body();
491 else if(what=="body.label") color("brown",0.7) body_label(); 491 else if(what=="body.label") color("brown",0.7) body_label();
492 else if(what=="knob") color("red",0.7) knob(); 492 else if(what=="knob") color("red",0.7) knob();
493 else if(what=="knob.label") color("brown",0.7) knob_label(); 493 else if(what=="knob.label") color("brown",0.7) knob_label();
494 else if(what=="springpad") color("blue",0.7) springpad(); 494 else if(what=="springpad") color("blue",0.7) springpad();
495 else if(what=="both") { 495 else if(what=="both") {
496 color("green",0.7) lever(); 496 color("green",0.7) lever();
497 color("yellow",0.7) body(); 497 color("yellow",0.7) body();
498 color("brown",0.7) body_label(); 498 color("brown",0.7) body_label();
499 }else{ 499 }else{
500 color("green",0.7) lever(); 500 color("green",0.7) lever();
501 color("yellow",0.7) body(); 501 color("yellow",0.7) body();
502 color("brown",0.7) body_label(); 502 color("brown",0.7) body_label();
503 color("red",0.7) knob(); 503 color("red",0.7) knob();
504 color("brown",0.7) knob_label(); 504 color("brown",0.7) knob_label();
505 color("blue",0.7) springpad(); 505 color("blue",0.7) springpad();
506 } 506 }
507} 507}
508 508
509the_extruder(what="*",left=false,debug=true); 509the_extruder(what="*",left=false,debug=true);