upxo.meshing.gbconformant.d3v2p0.surface_export module

PyVista views of surface complexes and tetrahedral meshes.

One place builds the PolyData / UnstructuredGrid objects that plots and file writers need, so every consumer carries the same cell arrays.

upxo.meshing.gbconformant.d3v2p0.surface_export.surface_polydata(surface, *, exterior=None, rve_face=None)[source]

Triangles of an interface or closed-RVE object as PolyData.

Cell arrays: grain_a and grain_b (from grain_pairs), is_rve_cap (from exterior) and rve_face when available. An object that already is a PolyData is returned unchanged.

upxo.meshing.gbconformant.d3v2p0.surface_export.save_surface(path, surface, **kwargs)[source]

Write surface_polydata() of surface to path (.vtp).

upxo.meshing.gbconformant.d3v2p0.surface_export.tet_grid(tets, *, quality_name='minSICN')[source]

Tetrahedra of a verified mesh as an UnstructuredGrid.

Cell arrays: grain_id and, when the mesh has one, the quality values under quality_name.