upxo.meshing.gbconformant.d3v2p1.numba_swaps module

numba kernels for tet face and edge swaps.

evaluate_swap() orients the new tets and applies d3v2p0.tet_swaps’ acceptance test (positive volumes, unchanged total volume, higher worst quality, no more tets outside the limits) in one compiled call; measure_tets() gives smallest/largest dihedral and quality for many tets. Import this module only after backend.numba_available() is True.

upxo.meshing.gbconformant.d3v2p1.numba_swaps.evaluate_swap(p, old, new, target, span)[source]

(accepted, worst new quality, oriented new tets) for replacing tets old (k, 4) by new (m, 4); same test as d3v2p0.tet_swaps.acceptable.

upxo.meshing.gbconformant.d3v2p1.numba_swaps.measure_tets(p, tets, target, span)[source]

(smallest dihedral, largest dihedral, quality) per tet.