phipict.meshing.read_vtk

phipict.meshing.read_vtk(path: str | Path, rel_tol: float = 0.0001) → Mesh[source]

Read structured grids as a mesh.

Every grid becomes a block; coinciding faces are connected. Grids of a boundary group written by phipict.io.export.write_vtk() restore the patches (without conditions). Grids that are one vertex thick in z and flat are read as 2D.

Parameters:
  • path (str or pathlib.Path) – A .vtm or .vts file, or any file pyvista reads.

  • rel_tol (float, optional) – Face matching tolerance, see Mesh. Default is 1e-4.

Returns:

The mesh.

Return type:

Mesh