Skip to content

Commit 5f4dd16

Browse files
committed
Merge pull request #11 from f3ndot/patch-1
auger() actually builds augers with all params
2 parents ce87286 + e8151cf commit 5f4dd16

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

screw.scad

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ module helix(pitch, length, slices=500){
2323
child(0);
2424
}
2525

26-
module auger(pitch, length, outside_diameter, inner_diameter) {
26+
module auger(pitch, length, outside_radius, inner_radius, taper_ratio = 0.25) {
2727
union(){
2828
helix(pitch, length)
29-
polygon(points=[[10,10],[100,1],[100,-1],[10,-10]], paths=[[0,1,2,3]]);
30-
cylinder(h=length, r=20);
29+
polygon(points=[[0,inner_radius],[outside_radius,(inner_radius * taper_ratio)],[outside_radius,(inner_radius * -1 * taper_ratio)],[0,(-1 * inner_radius)]], paths=[[0,1,2,3]]);
30+
cylinder(h=length, r=inner_radius);
3131
}
3232
}
3333

34-
module test_auger(){translate([300, 0, 0]) auger(100, 300);}
34+
module test_auger(){translate([50, 0, 0]) auger(40, 80, 25, 5);}
3535

3636

3737
module ball_groove(pitch, length, diameter, ball_radius=10) {

0 commit comments

Comments
 (0)