Renderer.add_actor(uinput, reset_camera=False, name=None, culling=False, pickable=True, render=True, remove_existing_actor=True)[source]#

Add an actor to render window.

Creates an actor if input is a mapper.

uinputvtk.vtkMapper or vtk.vtkActor

Vtk mapper or vtk actor to be added.

reset_camerabool, optional

Resets the camera when True.

namestr, optional

Name to assign to the actor. Defaults to the memory address.

cullingstr, 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. Default False.

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.

remove_existing_actorbool, optional

Removes any existing actor if the named actor name is already present.

actorvtk.vtkActor or pyvista.Actor

The actor.


Actor properties.