parq_blockmodel.mesh.triangulation#
Core mesh generation logic for converting block models to triangle meshes.
This module provides the BlockMeshGenerator class that converts a regular block model (represented by RegularGeometry + sparse/dense block data) into a triangulated surface mesh with optional per-vertex and per-face attributes.
- Key responsibilities:
Generate vertex coordinates in world space (with rotation applied).
Generate triangle connectivity with consistent winding order.
Map block attributes to vertex/face attributes.
Handle sparse block models (only vertices for present blocks).
Support surface-only vs. full interior mesh generation.
Validate right-handed coordinates.
Classes
|
Convert a block model to a triangulated surface mesh. |