Skip to main content

seeds_within

Function seeds_within 

Source
fn seeds_within(
    drawing: &Drawing<'_>,
    seeding: &Seeding<'_>,
    within: Region,
) -> Vec<Point>
Expand description

Seed points for a lattice covering within, and no others.

Gathered per lattice rather than once per pass: a commit that straightens every leg builds no lattice at all, and gathering 30,000 points for one that is never built was ~8 ms of every commit. Points outside the bounds are dropped here because the lattice would drop them anyway.