Function project_curve2_certified

Source
pub fn project_curve2_certified(
    curve: &BSplineCurve2,
    target: Point2,
    options: CertifiedProjectionOptions,
) -> GeomResult<CurveProjectionCertificate2>
Expand description

Globally bound the closest point on a clamped planar B-spline curve.

Positive rational weights make every refined segment lie in the convex hull of its Euclidean control points. Interval-aware homogeneous knot insertion and outward-rounded subdivision tighten those hulls until the global distance gap meets the requested tolerance.