upxo.meshing.gbconformant.d3v2p0.surface_metrics module
Shape measures of the grain-boundary surface.
- upxo.meshing.gbconformant.d3v2p0.surface_metrics.voxel_like_fraction(points, triangles, exterior=None, grain_pairs=None, grain_ids=(), tolerance_deg=5.0)[source]
Share of internal grain-boundary area whose triangles lie within
tolerance_degof a voxel face plane (axis-aligned normal).exterior marks RVE-face triangles, which are excluded. With grain_pairs and grain_ids, also returns the share on interfaces touching those grains. Returns dict(voxel_like, smooth, on_given_grains).