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
boundarygroup written byphipict.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
.vtmor.vtsfile, or any file pyvista reads.rel_tol (float, optional) – Face matching tolerance, see
Mesh. Default is 1e-4.
- Returns:
The mesh.
- Return type: