pyvista.XMLUnstructuredGridReader

pyvista.XMLUnstructuredGridReader#

class XMLUnstructuredGridReader(*args, **kwargs)[source]#

XML UnstructuredGrid Reader for .vtu files.

Examples

>>> import pyvista as pv
>>> from pyvista import examples
>>> from pathlib import Path
>>> filename = examples.download_notch_displacement(load=False)
>>> Path(filename).name
'notch_disp.vtu'
>>> reader = pv.get_reader(filename)
>>> mesh = reader.read()
>>> mesh.plot(
...     scalars='Nodal Displacement',
...     component=0,
...     cpos='xy',
...     show_scalar_bar=False,
... )
../../../_images/pyvista-XMLUnstructuredGridReader-1_00_00.png

Methods

Attributes