Skip to content

Commit

Permalink
Merge pull request #1530 from xloem/gears
Browse files Browse the repository at this point in the history
spur_gear: fix negative helix angles
  • Loading branch information
adrianVmariano authored Dec 19, 2024
2 parents 0f09d1f + db8236d commit a95916b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gears.scad
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ module spur_gear(
: assert(false,"atype must be one of \"root\", \"tip\" or \"pitch\"");
circum = 2 * PI * pr;
twist = 360*thickness*tan(helical)/circum;
slices = default(slices, ceil(twist/360*segs(pr)+1));
slices = default(slices, ceil(abs(twist)/360*segs(pr)+1));
default_tag("remove", internal) {
attachable(anchor,spin,orient, r=anchor_rad, l=thickness) {
zrot(gear_spin)
Expand Down

0 comments on commit a95916b

Please sign in to comment.