Skip to main content

analyse_blend

Function analyse_blend 

Source
pub fn analyse_blend(
    model: &Model,
    shape: &Shape,
    blend: &Shape,
    stations: usize,
    tol: Tolerances,
) -> OgeomResult<Vec<BlendContact>>
Expand description

Measure a blend face against every face it shares an edge with.

Both numbers are sampled: stations points spread over each shared edge’s range, the surfaces read at the parameters the edge’s own pcurves give, so nothing is inverted and nothing is guessed. A blend that is tangent everywhere except between two stations reports zero, which is the honest limit of sampling and the reason the count is in the report.

An edge whose pcurve on either face is missing cannot be measured this way at all: it is reported with its gap and tangency_error set to infinity rather than quietly skipped, because a blend nobody can measure is not a blend anybody should trust.

§Errors

OgeomError::Construction if blend is not a face of shape, or stations is less than two.