Skip to main content

KNOT_DEDUP_EPS

Constant KNOT_DEDUP_EPS 

Source
pub const KNOT_DEDUP_EPS: f64 = 1e-12;
Expand description

Numerical knot DEDUP epsilon (parameter-space): the tighter floor used when counting distinct knots (SSI/CSI interior_knot_count) or comparing whole knot vectors for exact reconstruction (analytic surface recognition). This answers “are these two knot floats the same value?”, NOT “are these the same knot for snapping?” — so it stays at 1e-12 and must NOT be unified with the looser KNOT_IDENTITY_TOL.

Comparand: the absolute difference of two knot values of ONE knot vector, and a knot’s distance from either end of the active domain (knots[degree], knots[len − 1 − degree]), in that curve’s parameter units. Two knots within it count as one, and a knot within it of an end is not interior. The containment lanes’ per-pcurve sample count (crate::trim_sample_count) counts interior knots this way.