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

Constructs a hexahedral mesh topology from a dense 3D grid

grid_to_quads

Constructs a quadrilateral mesh topology from a dense 2D grid

grid_to_tets

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

grid_to_tris

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