pub fn recognize_points(
points: &[Point],
normals: &[Vector],
tolerance: f64,
tol: Tolerances,
) -> OgeomResult<Option<Recognized>>Expand description
Recognize a canonical surface from samples with unit normals.
A plane is tried first; otherwise every curved kind is fitted, and the
closest whose measured worst deviation meets tolerance is taken, a
simpler kind winning a tie. None says the samples are free-form at
that tolerance, which is an answer, not a failure. Each kind has its own
sample floor, below which the fit is underdetermined and verification
would rubber-stamp whatever the algebra produced.
ยงErrors
OgeomError::Construction if
fewer than three samples arrive, the normals do not match the points,
or the tolerance is not a positive distance.