Skip to main content

Module slice_geometry

Module slice_geometry 

Source
Expand description

Geometry generation for slicing tetrahedra and hexahedra with a plane.

This module provides algorithms for computing the intersection of volume mesh cells with slice planes, producing polygon geometry for rendering cross-section caps.

Structs§

CellSliceResult
Result of slicing a volumetric cell with a plane. Can produce 0, 3, 4, 5, or 6 intersection points forming a convex polygon.

Functions§

slice_hex
Slice a hexahedron by decomposing into 5 tetrahedra.
slice_tet
Computes the intersection of a tetrahedron with a slice plane.