pyvista.XMLPolyDataReader

class XMLPolyDataReader(filename)

XML PolyData Reader for .vtp files.

Examples

>>> import pyvista
>>> from pyvista import examples
>>> filename = examples.download_cow_head(load=False)
>>> filename.split("/")[-1]  # omit the path
'cowHead.vtp'
>>> reader = pyvista.get_reader(filename)
>>> mesh = reader.read()
>>> mesh.plot(
...    cpos=((12, 3.5, -4.5), (4.5, 1.6, 0), (0, 1, 0.3)),
...    clim=[0, 100], show_scalar_bar=False
... )
../../../_images/pyvista-XMLPolyDataReader-1_00_00.png

Methods

XMLPolyDataReader.cell_array_status(name)

Get status of cell array with name.

XMLPolyDataReader.disable_all_cell_arrays()

Disable all cell arrays.

XMLPolyDataReader.disable_all_point_arrays()

Disable all point arrays.

XMLPolyDataReader.disable_cell_array(name)

Disable cell array with name.

XMLPolyDataReader.disable_point_array(name)

Disable point array with name.

XMLPolyDataReader.enable_all_cell_arrays()

Enable all cell arrays.

XMLPolyDataReader.enable_all_point_arrays()

Enable all point arrays.

XMLPolyDataReader.enable_cell_array(name)

Enable cell array with name.

XMLPolyDataReader.enable_point_array(name)

Enable point array with name.

XMLPolyDataReader.point_array_status(name)

Get status of point array with name.

XMLPolyDataReader.read()

Read data in file.

Attributes

XMLPolyDataReader.all_cell_arrays_status

Return the status of all cell arrays.

XMLPolyDataReader.all_point_arrays_status

Return the status of all point arrays.

XMLPolyDataReader.cell_array_names

Return the list of all cell array names.

XMLPolyDataReader.number_cell_arrays

Return the number of cell arrays.

XMLPolyDataReader.number_point_arrays

Return the number of point arrays.

XMLPolyDataReader.point_array_names

Return the list of all point array names.

XMLPolyDataReader.reader

Return the vtk Reader object.