upxo.meshing.gbconformant.d3v2p0.tet_quality_view module
Clipped, crinkle view of tet elements filtered by dihedral angle.
A plane widget clips the mesh with whole tets kept (crinkle clip). Two sliders filter the shown tets: the smallest dihedral angle at or below one value, and the largest dihedral angle at or above another. At their defaults (180 and 0) every tet is shown. Tets are coloured by their smallest dihedral angle.
launch_tet_quality_view opens the window in a separate process, so a notebook does not wait for it. Command line:
python -m upxo.meshing.gbconformant.d3v2p0.tet_quality_view TETS.vtu [–title T]
- upxo.meshing.gbconformant.d3v2p0.tet_quality_view.tet_angle_arrays(grid)[source]
Per-tet smallest and largest dihedral angles (degrees) of a tet UnstructuredGrid.
- upxo.meshing.gbconformant.d3v2p0.tet_quality_view.shown_cells(centres, smallest, largest, origin, normal, min_upper=180.0, max_lower=0.0)[source]
Mask of tets on the kept side of the plane (centre behind it, as a crinkle clip keeps whole cells) that pass both angle filters.
- upxo.meshing.gbconformant.d3v2p0.tet_quality_view.show_tet_quality(vtu, *, title='Tet quality', clim=(0.0, 70.5))[source]
Open the interactive clip-and-filter window (blocks until closed).