pyvista.XMLPolyDataReader#
- class XMLPolyDataReader(*args, **kwargs)[source]#
XML PolyData Reader for .vtp files.
Wraps vtkXMLPolyDataReader.
Examples
>>> import pyvista as pv >>> from pyvista import examples >>> from pathlib import Path >>> filename = examples.download_cow_head(load=False) >>> Path(filename).name 'cowHead.vtp' >>> reader = pv.get_reader(filename) >>> mesh = reader.read() >>> cpos = pv.CameraPosition( ... position=(12, 3.5, -4.5), focal_point=(4.5, 1.6, 0), viewup=(0, 1, 0.3) ... ) >>> mesh.plot( ... cpos=cpos, ... clim=[0, 100], ... show_scalar_bar=False, ... )