pub fn remove_knot2(
curve: &BSplineCurve2,
parameter: Scalar,
tolerance: Scalar,
) -> GeomResult<BoundedResult<BSplineCurve2>>Expand description
Remove one interior knot from a planar curve, or refuse.
Removal is lossy in general: a knot can only be dropped if the curve is
already smooth enough there to be represented without it. This computes the
candidate, MEASURES how far it actually moved, and refuses when that
exceeds tolerance.
Measuring rather than trusting the recurrence is deliberate. The removal equations are an inverse of knot insertion and are only valid when the knot is genuinely removable; applying them to a knot that carries real shape produces a curve that looks plausible and is wrong. Sampling the result against the original turns that into a refusal instead.