add_actor

Renderer.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
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.

Returns
actorvtk.vtkActor

The actor.

actor_propertiesvtk.Properties

Actor properties.