Function generate_piers

Source
pub fn generate_piers(
    shape: &SPolygon,
    n: usize,
    poles: &[Circle],
) -> Result<Vec<Edge>>
Expand description

Generates a set of n piers - line segments fully contained within shape. This function generates them in such a way as to cover areas of the shape that are poorly represented by poles as well as possible.