mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-01-16 13:50:23 +01:00
Merge pull request #1530 from xloem/gears
spur_gear: fix negative helix angles
This commit is contained in:
commit
a95916b39e
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user