upxo.meshing.gbconformant.d3v2p1.geometry_guard module

d3v2p0.geometry_guard with the intersection search on the d3v2p1 tiers.

The rollback rules and the report are d3v2p0’s; only the search for intersecting triangles runs through d3v2p1.surface_intersections, which returns the same pairs for every tier and worker count (so the result is identical to d3v2p0’s). Without numba the search is d3v2p0’s own pair test, serial or in worker processes.

upxo.meshing.gbconformant.d3v2p1.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, n_workers=None, backend='auto', track_history=False)[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_correction bounds movement from the incoming smoothed coordinates; None permits rollback all the way to the extracted geometry. backend / n_workers: see d3v2p1.backend (None = automatic); the result does not depend on them. track_history is accepted for signature parity with the other iterative repairs; this stage’s history is already in the returned report regardless.