Function skeleton

Source
pub fn skeleton(
    region: &[Polygon],
    spacing: f64,
    prune: f64,
) -> Result<Skeleton, SkeletonError>
Expand description

The skeleton of region, its boundary sampled at most spacing apart, keeping the nodes whose nearest walls spread at least prune times their clearance apart (1.5 drops the spurs into right-angled corners; 0 keeps every node).

ยงErrors

SkeletonError for a malformed region or parameters.