Gear tooth profile clearance value bugfix.

This commit is contained in:
Revar Desmera 2023-07-31 02:08:30 -07:00
parent 1ae1c3cf0f
commit 9233197a6c

View file

@ -2282,7 +2282,8 @@ function _gear_tooth_profile(
adendum = _adendum(circ_pitch=circ_pitch, profile_shift=profile_shift),
dedendum = _dedendum(circ_pitch=circ_pitch, clearance=clearance, profile_shift=profile_shift),
clear = abs(dedendum-adendum),
mod = module_value(circ_pitch=circ_pitch),
clear = default(clearance, 0.25 * mod),
srad = max(rrad,brad),
tthick = circ_pitch/PI / cos(helical) * (PI/2 + 2*profile_shift * tan(pressure_angle)) - backlash,
@ -2290,12 +2291,6 @@ function _gear_tooth_profile(
// Generate a lookup table for the involute curve angles, by radius
involute_lup = [
if (clear > 0 && false)
each xy_to_polar(
arc(n=16, r=clear, corner=[
[-0.1,rrad], [0,rrad], [0,rrad+clear]
])
),
for (i=[0:5:arad/PI/brad*360])
let(
xy = _involute(brad,i),