Skip to main content

resample_path

Function resample_path 

Source
pub fn resample_path(
    path: &EvaluatedPath,
    size: CanvasSize,
    counts: &[usize],
) -> EvaluatedPath
Expand description

path resampled to counts[i] evenly spaced vertices on subpath i, so paths with different vertex counts can morph. Tangents are a third of the spacing. Subpaths without a count, or with a count under 2 (3 when closed), are unchanged.