Skip to main content

fit_branch

Function fit_branch 

Source
pub fn fit_branch(
    surf_a: &NurbSurface3D,
    surf_b: &NurbSurface3D,
    points: &[Vector3],
    uvs: &[OnBoth],
    widest_between: &mut WidestBetween,
    ctx: &dyn Fn(GeopError) -> GeopError,
) -> GeopResult<NurbCurve<4>>
Expand description

The curve of a traced branch whose shape nothing names: a cubic through the marched points (each on both surfaces at its uvs), widened to enclose the branch between them.

widest_between is told the widest point of the branch located between the marched ones — leg, fraction, point, width — of the last attempt to fit it: the curve is widened to hold it, so one that is wide makes the whole curve wide, and this says which.