pyvista.XMLUnstructuredGridReader

class XMLUnstructuredGridReader(filename)

XML UnstructuredGrid Reader for .vtu files.

Examples

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

XMLUnstructuredGridReader.cell_array_status(name)

Get status of cell array with name.

XMLUnstructuredGridReader.disable_all_cell_arrays()

Disable all cell arrays.

XMLUnstructuredGridReader.disable_all_point_arrays()

Disable all point arrays.

XMLUnstructuredGridReader.disable_cell_array(name)

Disable cell array with name.

XMLUnstructuredGridReader.disable_point_array(name)

Disable point array with name.

XMLUnstructuredGridReader.enable_all_cell_arrays()

Enable all cell arrays.

XMLUnstructuredGridReader.enable_all_point_arrays()

Enable all point arrays.

XMLUnstructuredGridReader.enable_cell_array(name)

Enable cell array with name.

XMLUnstructuredGridReader.enable_point_array(name)

Enable point array with name.

XMLUnstructuredGridReader.point_array_status(name)

Get status of point array with name.

XMLUnstructuredGridReader.read()

Read data in file.

Attributes

XMLUnstructuredGridReader.all_cell_arrays_status

Return the status of all cell arrays.

XMLUnstructuredGridReader.all_point_arrays_status

Return the status of all point arrays.

XMLUnstructuredGridReader.cell_array_names

Return the list of all cell array names.

XMLUnstructuredGridReader.number_cell_arrays

Return the number of cell arrays.

XMLUnstructuredGridReader.number_point_arrays

Return the number of point arrays.

XMLUnstructuredGridReader.point_array_names

Return the list of all point array names.

XMLUnstructuredGridReader.reader

Return the vtk Reader object.