warp.fem.utils#

Utility functions for FEM geometry conversions.

This module provides functions for converting dense grid topologies to mesh topologies, including triangular, tetrahedral, quadrilateral, and hexahedral meshes.

API#

grid_to_hexes

Construct a hexahedral mesh topology from a dense 3D grid.

grid_to_quads

Construct a quadrilateral mesh topology from a dense 2D grid.

grid_to_tets

Construct a tetrahedral mesh topology by diving each cell of a dense 3D grid into five tetrahedrons.

grid_to_tris

Construct a triangular mesh topology by dividing each cell of a dense 2D grid into two triangles.