pyvista.read_meshio

Contents

pyvista.read_meshio#

read_meshio(filename, file_format=None)[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.