mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-04 03:09:45 +00:00
Rack profile shift bugfix for tooth rounding.
This commit is contained in:
parent
4283b0b454
commit
3878f4fc6d
1 changed files with 3 additions and 2 deletions
|
@ -1375,7 +1375,8 @@ function rack2d(
|
||||||
) = let(
|
) = let(
|
||||||
pitch = _inherit_gear_pitch("rack2d()",pitch, circ_pitch, diam_pitch, mod, warn=false),
|
pitch = _inherit_gear_pitch("rack2d()",pitch, circ_pitch, diam_pitch, mod, warn=false),
|
||||||
PA = _inherit_gear_pa(pressure_angle),
|
PA = _inherit_gear_pa(pressure_angle),
|
||||||
helical = _inherit_gear_helical(helical)
|
helical = _inherit_gear_helical(helical),
|
||||||
|
mod = module_value(circ_pitch=pitch)
|
||||||
)
|
)
|
||||||
assert(is_integer(teeth) && teeth>0)
|
assert(is_integer(teeth) && teeth>0)
|
||||||
assert(is_finite(PA) && PA>=0 && PA<90, "Bad pressure_angle value.")
|
assert(is_finite(PA) && PA>=0 && PA<90, "Bad pressure_angle value.")
|
||||||
|
@ -1388,6 +1389,7 @@ function rack2d(
|
||||||
let(
|
let(
|
||||||
adendum = _adendum(pitch, profile_shift),
|
adendum = _adendum(pitch, profile_shift),
|
||||||
dedendum = _dedendum(pitch, clearance, profile_shift),
|
dedendum = _dedendum(pitch, clearance, profile_shift),
|
||||||
|
clear = default(clearance, 0.25 * mod),
|
||||||
bottom = is_def(bottom) ?
|
bottom = is_def(bottom) ?
|
||||||
assert(is_finite(bottom) && bottom>dedendum, "bottom is invalid or too small for teeth")
|
assert(is_finite(bottom) && bottom>dedendum, "bottom is invalid or too small for teeth")
|
||||||
bottom
|
bottom
|
||||||
|
@ -1406,7 +1408,6 @@ function rack2d(
|
||||||
l = teeth * trans_pitch,
|
l = teeth * trans_pitch,
|
||||||
ax = ang_adj_to_opp(trans_pa, adendum),
|
ax = ang_adj_to_opp(trans_pa, adendum),
|
||||||
dx = ang_adj_to_opp(trans_pa, dedendum),
|
dx = ang_adj_to_opp(trans_pa, dedendum),
|
||||||
clear = dedendum - adendum,
|
|
||||||
poff = tthick/2 - backlash,
|
poff = tthick/2 - backlash,
|
||||||
tooth = [
|
tooth = [
|
||||||
[-trans_pitch/2, -dedendum],
|
[-trans_pitch/2, -dedendum],
|
||||||
|
|
Loading…
Reference in a new issue