summaryrefslogtreecommitdiff
authorMichael Krelin <hacker@klever.net>2018-08-31 22:57:52 (UTC)
committer Michael Krelin <hacker@klever.net>2018-08-31 22:57:52 (UTC)
commit5fc39109c531d0b4c61a64f206c66e4e34befea7 (patch) (unidiff)
tree2ef761956118963d27d86195f79804747fecd768
parent183ac2d4948c69d97b5491dcf83fb238d53ac121 (diff)
downloadextrudery-5fc39109c531d0b4c61a64f206c66e4e34befea7.zip
extrudery-5fc39109c531d0b4c61a64f206c66e4e34befea7.tar.gz
extrudery-5fc39109c531d0b4c61a64f206c66e4e34befea7.tar.bz2
optimizied knob generation
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--another.scad8
1 files changed, 3 insertions, 5 deletions
diff --git a/another.scad b/another.scad
index 0f696cc..05bfab3 100644
--- a/another.scad
+++ b/another.scad
@@ -412,30 +412,28 @@ module the_extruder(
412 translate([0,0,body_h+epsilon]) { 412 translate([0,0,body_h+epsilon]) {
413 mirror([0,0,1]) translate([0,0,-epsilon]) { 413 mirror([0,0,1]) translate([0,0,-epsilon]) {
414 difference() { 414 difference() {
415 cylinder(d=pulley_d,h=knob_bore_l,$fn=fnd*pulley_d); 415 cylinder(d=pulley_d,h=knob_bore_l,$fn=fnd*pulley_d);
416 translate([0,0,-1]) difference() { 416 translate([0,0,-1]) difference() {
417 cylinder(d=bore_d+knob_bore_d_tolerance,h=knob_bore_l+2); 417 cylinder(d=bore_d+knob_bore_d_tolerance,h=knob_bore_l+2);
418 translate([-bore_d/2-1,bore_dd-bore_d/2+knob_bore_d_tolerance/2,-1]) 418 translate([-bore_d/2-1,bore_dd-bore_d/2+knob_bore_d_tolerance/2,-1])
419 cube([bore_d+2,bore_d/2,knob_bore_l+4]); 419 cube([bore_d+2,bore_d/2,knob_bore_l+4]);
420 } 420 }
421 } 421 }
422 } 422 }
423 difference() { 423 difference() {
424 union() { 424 hull() {
425 cylinder(d1=gearbox_d-2*ch,d2=gearbox_d,h=ch+epsilon,$fn=fnd*gearbox_d); 425 cylinder(d=gearbox_d-2*ch,h=knob_h,$fn=fnd*gearbox_d);
426 translate([0,0,ch]) 426 translate([0,0,ch])
427 cylinder(d=gearbox_d,h=knob_h-2*ch+epsilon,$fn=fnd*gearbox_d); 427 cylinder(d=gearbox_d,h=knob_h-2*ch,$fn=fnd*gearbox_d);
428 translate([0,0,knob_h-ch])
429 cylinder(d1=gearbox_d,d2=gearbox_d-2*ch,h=ch,$fn=fnd*gearbox_d);
430 } 428 }
431 for(a=[0:360/knob_indents:359]) rotate([0,0,a]) 429 for(a=[0:360/knob_indents:359]) rotate([0,0,a])
432 translate([0,gearbox_d/2,-1]) 430 translate([0,gearbox_d/2,-1])
433 cylinder(d=knob_indent_d,h=knob_h+2,$fn=fnd*knob_indent_d); 431 cylinder(d=knob_indent_d,h=knob_h+2,$fn=fnd*knob_indent_d);
434 } 432 }
435 } 433 }
436 }//knob module 434 }//knob module
437 435
438 module debug() { 436 module debug() {
439 difference() { 437 difference() {
440 children(); 438 children();
441 if(debug) { 439 if(debug) {