Skip to main content

explore_unique

Function explore_unique 

Source
pub fn explore_unique(
    model: &Model,
    root: &Shape,
    want: ShapeType,
) -> OgeomResult<Vec<Shape>>
Expand description

Walk a shape’s tree, yielding every sub-shape of want exactly once.

Deduplicated by Shape::is_same (node and placement, ignoring orientation), which is what “the distinct edges of this solid” means.

§Errors

As explore.