pyvista.from_meshio

Contents

pyvista.from_meshio#

from_meshio(mesh)[source]#

Convert a meshio mesh instance to a PyVista mesh.

Parameters:
meshmeshio.Mesh

A mesh instance from the meshio library.

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.