pub fn belt_along(
out: &mut Vec<Part>,
path: &[[f64; 2]],
along: &[f64],
y: f64,
width: f64,
tooth_spacing: f64,
shade: impl Fn(usize) -> f32,
)Expand description
belt with the belt length of each path point given (along, rising) rather than taken from the drawn path:
for a drawn path that is not the belt’s length, e.g. a span drawn sagging larger than it is. Each tooth keeps its
place in belt length and sits on the drawn segment whose ends’ belt lengths hold it, at the same share between them.