Skip to main content

section

Function section 

Source
pub fn section(mesh: &Triangulation, plane: &Plane) -> OgeomResult<Section>
Expand description

Section a mesh by a plane.

outward and the chains’ direction come from the triangles’ winding, counter-clockwise about their outward normals as Triangulation::triangles are. A triangle naming one vertex twice has no area and is passed over.

§Errors

OgeomError::Range if a triangle names a vertex the mesh does not have, and OgeomError::Numeric if a position or the plane’s origin is not finite.