actors_funcs

Contents

mirror_actor_at_point [#6]

Check the source code online

def mirror_actor_at_point(actor, point, axis='x'):

  docstring:

Mirror an actor around a point
:param actor:
:param point:
:param axis: (Default value = 'x')

set_wireframe [#60]

Check the source code online

def set_wireframe(actor):

  docstring:

set an actor's look to wireframe
:param actor:

set_solid [#70]

Check the source code online

def set_solid(actor):

  docstring:

set an actor's look to solid
:param actor:

set_color [#80]

Check the source code online

def set_color(actor, color):

  docstring:

set an actor's look to a specific color
:param actor:
:param color:

set_line [#91]

Check the source code online

def set_line(actor, lw=None, c=None):

  docstring:

set an actor's look to specify the line width and color
:param actor:
:param lw: (Default value = None)
:param c: (Default value = None)

upsample_actor [#106]

Check the source code online

def upsample_actor(actor, fact=1):

  docstring:

Increase resolution of actor
:param actor:
:param fact: (Default value = 1)

downsample_actor [#117]

Check the source code online

def downsample_actor(actor, fact=0.5):

  docstring:

Reduce resolution of actor
:param actor:
:param fact: (Default value = 0.5)

smooth_actor [#128]

Check the source code online

def smooth_actor(actor, factor=15):

  docstring:

Smooth an actor's mesh
:param actor:
:param factor: (Default value = 15)

edit_actor [#139]

Check the source code online

def edit_actor(actor, wireframe=False, solid=False, color=False,
line=False, line_kwargs={}, upsample=False, downsample=False,
smooth=False):

  docstring:

Apply a set of functions to edit an actor's look.
:param actor:
:param wireframe: if true, change look to wireframe (Default value =
False)
:param solid: if true change look to soi=lid (Default value = False)
:param color: specify new color (Default value = False)
:param line: if true, edit the line's look (Default value = False)
:param line_kwargs: specify width and color of line (Default value =
{})
:param upsample: if true, increase resolution (Default value = False)
:param downsample: if true, decrease resolution (Default value =
False)
:param smooth: if true, smoothen actor (Default value = False)