upxo.meshing.gbconformant.d3v2p0.geometry_guard module
Bounded local rollback of smoothing that creates intersections or cap tangencies.
- upxo.meshing.gbconformant.d3v2p0.geometry_guard.stabilize_interfaces(surface, dimensions, enabled=True, boundary_clearance=0.025, max_passes=12, relaxation=0.5, max_correction=None, minimum_facet_angle=1.0, progress=None)[source]
Pull defective neighbourhoods toward their extracted voxel coordinates.
Checks all triangle intersections, source-relative normal reversal/collapse, and clearance of originally interior nodes from each box plane. This restores local voxel detail where required; it does not split connectivity or delete grains. Frozen junctions and original RVE coordinates remain exact. Failure raises instead of returning a geometry claimed to be suitable for meshing.
max_correctionbounds movement from the incoming smoothed coordinates; None permits rollback all the way to the extracted geometry.