Actor.mapper#
- property Actor.mapper: _BaseMapper[source]#
Return or set the mapper of the actor.
Examples#
Download Python source code | Download Jupyter notebook
Create an actor and assign a mapper to it.
>>> import pyvista as pv
>>> dataset = pv.Sphere()
>>> actor = pv.Actor()
>>> actor.mapper = pv.DataSetMapper(dataset)
>>> actor.mapper
DataSetMapper (...)
Scalar visibility: True
Scalar range: (0.0, 1.0)
Interpolate before mapping: True
Scalar map mode: default
Color mode: direct
Attached dataset:
PolyData (...)
N Cells: 1680
N Points: 842
N Strips: 0
X Bounds: -4.993e-01, 4.993e-01
Y Bounds: -4.965e-01, 4.965e-01
Z Bounds: -5.000e-01, 5.000e-01
N Arrays: 1
Used In#
Docstring Examples
PointGaussianMapper.scale_array(1 use)_BaseDataSetMapper.resolve(1 use)_BaseMapper.array_name(1 use)_BaseMapper.lookup_table(1 use)_BaseMapper.scalar_range(1 use)_BaseMapper.scalar_visibility(1 use)
Gallery Examples