Skip to main content

sections

Function sections 

Source
pub fn sections(
    mesh: &Triangulation,
    plane: &Plane,
    offsets: &[f64],
) -> OgeomResult<Vec<Section>>
Expand description

Section a mesh by a stack of planes, plane moved along its normal by each of offsets in turn.

Each section is section’s by the moved plane, computed in parallel and returned in the order of offsets, the same at any thread count.

§Errors

As section, and OgeomError::Numeric if an offset is not finite.