Skip to main content

measure_surface_fit_against_pointwise_offset

Function measure_surface_fit_against_pointwise_offset 

Source
pub fn measure_surface_fit_against_pointwise_offset(
    source: &NurbsSurface,
    same_sense: bool,
    fitted: &NurbsSurface,
    distance: f64,
    band: f64,
) -> Result<MeasuredTolerance, String>
Expand description

max_{u,v} ‖S_fit(u,v) − offset(u,v)‖ — how far a fitted offset carrier sits from the pointwise offset it was fitted to, recorded against band.

distance and same_sense are offset_surface’s, and the evaluator is constructed with the same convention that produced the fit’s samples (OffsetNormal::FaceStable, with the same single negation), so this measures the FIT and nothing else — not a sign disagreement, and not a second opinion about which way “outward” points.

Only meaningful when the carrier really is a pointwise fit over the same parameterisation. offset_surface’s planar/ruled extension and its apex-cone pinch retrim both move the sample grid off the pointwise offset on purpose; measuring one of those against a pointwise offset reports a designed divergence, not an error. offset_surface_measured decides that and does not call this in those cases.