pyvista.from_meshio#
- from_meshio(mesh: meshio.Mesh) UnstructuredGrid [source]#
Convert a
meshio
mesh instance to a PyVista mesh.- Parameters:
- mesh
meshio.Mesh
A mesh instance from the
meshio
library.
- mesh
- Returns:
pyvista.UnstructuredGrid
A PyVista unstructured grid representation of the input
meshio
mesh.
- Raises:
ImportError
If the appropriate version of
meshio
library is not found.