pyvista.XMLStructuredGridReader

pyvista.XMLStructuredGridReader#

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

XML StructuredGrid Reader for .vts files.

Examples

>>> import pyvista as pv
>>> from pyvista import examples
>>> filename = examples.download_structured_grid(load=False)
>>> filename.split("/")[-1]  # omit the path
'StructuredGrid.vts'
>>> reader = pv.get_reader(filename)
>>> mesh = reader.read()
>>> mesh.plot(style='wireframe', line_width=4, show_scalar_bar=False)
../../../_images/pyvista-XMLStructuredGridReader-1_00_00.png

Methods

Attributes