Skip to main content

join

Function join 

Source
pub fn join<P: Blend>(a: &Spline<P>, b: &Spline<P>) -> OgeomResult<Spline<P>>
Expand description

Join two clamped B-splines of one degree end to start into one.

a’s last control point and b’s first are taken to be the same point (the caller checks, since a control point is whatever blends) and become one control; the join knot is left at multiplicity degree, so the curve passes through it and continues with b’s parameter shifted to begin where a’s ends. The domain is the two domains laid end to end.

§Errors

OgeomError::Construction if the degrees differ, either knot vector is not clamped, or a knot vector does not fit its control points.