pyvista.XMLStructuredGridReader

class XMLStructuredGridReader(filename)

XML StructuredGrid Reader for .vts files.

Examples

>>> import pyvista
>>> from pyvista import examples
>>> filename = examples.download_structured_grid(load=False)
>>> filename.split("/")[-1]  # omit the path
'StructuredGrid.vts'
>>> reader = pyvista.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

XMLStructuredGridReader.cell_array_status(name)

Get status of cell array with name.

XMLStructuredGridReader.disable_all_cell_arrays()

Disable all cell arrays.

XMLStructuredGridReader.disable_all_point_arrays()

Disable all point arrays.

XMLStructuredGridReader.disable_cell_array(name)

Disable cell array with name.

XMLStructuredGridReader.disable_point_array(name)

Disable point array with name.

XMLStructuredGridReader.enable_all_cell_arrays()

Enable all cell arrays.

XMLStructuredGridReader.enable_all_point_arrays()

Enable all point arrays.

XMLStructuredGridReader.enable_cell_array(name)

Enable cell array with name.

XMLStructuredGridReader.enable_point_array(name)

Enable point array with name.

XMLStructuredGridReader.point_array_status(name)

Get status of point array with name.

XMLStructuredGridReader.read()

Read data in file.

Attributes

XMLStructuredGridReader.all_cell_arrays_status

Return the status of all cell arrays.

XMLStructuredGridReader.all_point_arrays_status

Return the status of all point arrays.

XMLStructuredGridReader.cell_array_names

Return the list of all cell array names.

XMLStructuredGridReader.number_cell_arrays

Return the number of cell arrays.

XMLStructuredGridReader.number_point_arrays

Return the number of point arrays.

XMLStructuredGridReader.point_array_names

Return the list of all point array names.

XMLStructuredGridReader.reader

Return the vtk Reader object.