pub fn points_by_spacing(
curve: &Curve,
range: (f64, f64),
spacing: f64,
tol: Tolerances,
) -> OgeomResult<Vec<(f64, Point)>>Expand description
Points along a curve at a fixed arc-length spacing.
The first point is at the start. The last is at the end whatever the spacing divides to, so the final gap is short rather than the curve being left unfinished: a distribution that stops before the end is a different answer from the one asked for, and silently dropping the tail is how a toolpath ends up not reaching the edge of the material.
ยงErrors
OgeomError::Construction if spacing is
not finite and positive; otherwise as parameter_at_length.