Property.representation#
- property Property.representation: RepresentationType[source]#
Return or set the visualization representation of the mesh.
The setter accepts a string (case insensitive), an integer, or a
RepresentationTypeenum member. One of:See also
styleEquivalent property which returns the representation as a string.
Examples
Get the default representation.
>>> import pyvista as pv >>> prop = pv.Property() >>> prop.representation <RepresentationType.SURFACE: 2>
Set the representation using the enum.
>>> from pyvista.plotting.opts import RepresentationType >>> prop.representation = RepresentationType.WIREFRAME >>> prop.representation <RepresentationType.WIREFRAME: 1>