upxo.meshing.gbconformant.d3v2p1.surface_quality module

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

The flip rules and the report are d3v2p0’s; the search runs through d3v2p1.surface_intersections, which returns the same pairs for every tier and worker count, so the result is identical to d3v2p0’s.

upxo.meshing.gbconformant.d3v2p1.surface_quality.improve_surface_quality(surface, enabled=True, minimum_quality=0.05, max_passes=10, minimum_facet_angle=0.1, progress=None, n_workers=None, backend='auto', track_history=False)[source]

Flip interior diagonals without moving nodes or changing patch ownership.

Every accepted pair improves its minimum triangle quality. Shared grain junction edges and RVE patch boundaries cannot flip. Independent proposals are checked against the whole complex; proposals involved in an intersection are rolled back. This guards changed triangles, not pre-existing defects in untouched triangles: run the full tetrahedral surface validation afterwards. Nonplanar flips can change local interface shape and individual grain volumes. backend / n_workers: see d3v2p1.backend (None = automatic); the result does not depend on them.