add_actor#
- Plotter.add_actor(uinput, reset_camera=False, name=None, culling=False, pickable=True, render=True)#
Add an actor to render window.
Creates an actor if input is a mapper.
- Parameters
- uinput
vtk.vtkMapper
orvtk.vtkActor
Vtk mapper or vtk actor to be added.
- reset_camerabool,
optional
Resets the camera when
True
.- name
str
,optional
Name to assign to the actor. Defaults to the memory address.
- culling
str
,optional
Does not render faces that are culled. Options are
'front'
or'back'
. This can be helpful for dense surface meshes, especially when edges are visible, but can cause flat meshes to be partially displayed. DefaultFalse
.- pickablebool,
optional
Whether to allow this actor to be pickable within the render window.
- renderbool,
optional
If the render window is being shown, trigger a render after adding the actor.
- uinput
- Returns
- actor
vtk.vtkActor
The actor.
- actor_properties
vtk.Properties
Actor properties.
- actor