Skip to main content

repair_same_parameter

Function repair_same_parameter 

Source
pub fn repair_same_parameter(
    model: &mut Model,
    shape: &Shape,
    tol: Tolerances,
) -> OgeomResult<SameParameterReport>
Expand description

Verify every edge under shape and make its same_parameter flag true.

Each pcurve is sampled against the edge’s own curve at matched parameters (the same linear range mapping the triangulator uses), and the worst gap decides: within the edge’s tolerance, the claim is confirmed; beyond it, the tolerance widens to cover what was measured, which makes the claim true by making the tolerance honest. Degenerate edges and edges with no pcurves are trivially true.

§Errors

OgeomError::Dangling if the shape or a representation resolves to nothing.