pub fn profile_deviation(
profile: &Profile,
chord_error: Scalar,
tolerance: Tolerance,
) -> GeomResult<ProfileDeviation>Expand description
The deviation of profile_rings(profile, chord_error, tolerance)
from the exact profile (#232).
The rings are rebuilt here, deterministically, and three things are read off them:
- each curved segment’s family: one
axiolid_reference::curve::flatten2certifies (axiolid_reference::bound::certifies_flattening2) is withinchord_errorof its chords; any other isUnbounded; - the points merged as coincident (within the linear tolerance of the point kept): a merged point moves the ring by at most its distance to the kept one, which is added;
- a derived profile’s transform, whose largest stretch scales the basis’s bound.
§Errors
As profile_rings for the same arguments.