Skip to main content

free_faces

Function free_faces 

Source
pub fn free_faces(
    input: &FreeSpaceInput,
    gap: f64,
    tolerance: Tolerance,
) -> Result<FreeFaces, FreeFacesError>
Expand description

The bounded free faces of input, closing gaps narrower than gap.

gap is a distance in the units of the points: 0 closes nothing, there is no upper limit, and a distance exactly gap is not closed. tolerance validates the input, as everywhere in the crate; no decision reads it.

ยงErrors

FreeFacesError; the first defect found in the order gap, obstacles by index, barriers by index.