Compare commits

..

2 commits

Author SHA1 Message Date
adrianVmariano
3dd78290c0
Merge cb0e5c1457 into a95916b39e 2024-12-22 00:09:57 +00:00
Adrian Mariano
cb0e5c1457 bugfix 2024-12-21 19:09:45 -05:00

View file

@ -3353,8 +3353,7 @@ function _gear_tooth_profile(
xy = _involute(brad,i), xy = _involute(brad,i),
pol = xy_to_polar(xy) pol = xy_to_polar(xy)
) )
if (pol.x <= arad * 1.1) if (pol.x <= arad * 1.1) [pol.x, 90-pol.y]
[pol.x, 90-pol.y]
], ],
// Generate reverse lookup table for involute radii, by angle // Generate reverse lookup table for involute radii, by angle
@ -3442,7 +3441,7 @@ function _gear_tooth_profile(
if (!internal && round_r<=0) isect_pt, if (!internal && round_r<=0) isect_pt,
each tooth_half_raw, each tooth_half_raw,
if (internal && round_r>0) each arc(n=8, r=round_r, corner=rcorner), if (internal && round_r>0) each arc(n=8, r=round_r, corner=rcorner),
if (internal && round_r<=0) isect, if (internal && round_r<=0) isect_pt,
]), ]),
// Strip "jaggies" if found. // Strip "jaggies" if found.