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) (side-by-side diff)
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
@@ -422,10 +422,8 @@ module the_extruder(
}
difference() {
- union() {
- cylinder(d1=gearbox_d-2*ch,d2=gearbox_d,h=ch+epsilon,$fn=fnd*gearbox_d);
+ hull() {
+ cylinder(d=gearbox_d-2*ch,h=knob_h,$fn=fnd*gearbox_d);
translate([0,0,ch])
- cylinder(d=gearbox_d,h=knob_h-2*ch+epsilon,$fn=fnd*gearbox_d);
- translate([0,0,knob_h-ch])
- cylinder(d1=gearbox_d,d2=gearbox_d-2*ch,h=ch,$fn=fnd*gearbox_d);
+ cylinder(d=gearbox_d,h=knob_h-2*ch,$fn=fnd*gearbox_d);
}
for(a=[0:360/knob_indents:359]) rotate([0,0,a])