Skip to main content

explore

Function explore 

Source
pub fn explore(
    model: &Model,
    root: &Shape,
    filter: Filter,
) -> OgeomResult<Vec<Shape>>
Expand description

Walk a shape’s tree, composing placement and orientation on descent.

Yields each matching sub-shape with its effective placement and orientation: the composition of everything from the root down. That is the only form in which a sub-shape means anything outside the tree it came from.

Sub-shapes reached by more than one route (an edge shared by two faces) are yielded once per route, since each occurrence has its own orientation and that is usually the point. Deduplicate with SameKey when it is not.

§Errors

OgeomError::Dangling if any handle fails to resolve in model.