pyvista.read_meshio

Contents

pyvista.read_meshio#

read_meshio(filename: str | Path, file_format: str | None = None) meshio.Mesh[source]#

Read any mesh file using meshio.

Parameters:
filenamestr

The name of the file to read. It should include the file extension.

file_formatstr, optional

The format of the file to read. If not provided, the file format will be inferred from the file extension.

Returns:
pyvista.DataSet

The mesh read from the file.

Raises:
ImportError

If the meshio package is not installed.