Skip to main content

fit_projected_pcurve_capped

Function fit_projected_pcurve_capped 

Source
pub fn fit_projected_pcurve_capped(
    curve: &Curve,
    range: (f64, f64),
    surface: &SurfaceGeometry,
    cap: f64,
    tol: Tolerances,
) -> FittedPcurve
Expand description

As the reader’s projected-pcurve fit, with the acceptance cap in the caller’s hands.

The reader draws its line at a millimetre (below it is a file’s own slop, above it a wrong pairing), but a healer acts on instruction, and the instruction carries the cap. Returns the fitted pcurve, the fit’s reached error as a length, whether it met its target, the worst measured edge-to-surface offset, and the slop note when that offset is worth saying out loud.

§Errors

OgeomError::Construction if a sample sits farther than cap from the surface, or the projection cannot converge at all.