actors_funcs

Contents

mirror_actor_at_point [#6]

Check the source code online
1
def mirror_actor_at_point(actor, point, axis='x'):
Copied!
  docstring:
1
Mirror an actor around a point
2
3
:param actor:
4
5
:param point:
6
7
:param axis: (Default value = 'x')
Copied!

set_wireframe [#60]

Check the source code online
1
def set_wireframe(actor):
Copied!
  docstring:
1
set an actor's look to wireframe
2
3
:param actor:
Copied!

set_solid [#70]

Check the source code online
1
def set_solid(actor):
Copied!
  docstring:
1
set an actor's look to solid
2
3
:param actor:
Copied!

set_color [#80]

Check the source code online
1
def set_color(actor, color):
Copied!
  docstring:
1
set an actor's look to a specific color
2
3
:param actor:
4
5
:param color:
Copied!

set_line [#91]

Check the source code online
1
def set_line(actor, lw=None, c=None):
Copied!
  docstring:
1
set an actor's look to specify the line width and color
2
3
:param actor:
4
5
:param lw: (Default value = None)
6
7
:param c: (Default value = None)
Copied!

upsample_actor [#106]

Check the source code online
1
def upsample_actor(actor, fact=1):
Copied!
  docstring:
1
Increase resolution of actor
2
3
:param actor:
4
5
:param fact: (Default value = 1)
Copied!

downsample_actor [#117]

Check the source code online
1
def downsample_actor(actor, fact=0.5):
Copied!
  docstring:
1
Reduce resolution of actor
2
3
:param actor:
4
5
:param fact: (Default value = 0.5)
Copied!

smooth_actor [#128]

Check the source code online
1
def smooth_actor(actor, factor=15):
Copied!
  docstring:
1
Smooth an actor's mesh
2
3
:param actor:
4
5
:param factor: (Default value = 15)
Copied!

edit_actor [#139]

Check the source code online
1
def edit_actor(actor, wireframe=False, solid=False, color=False,
2
line=False, line_kwargs={}, upsample=False, downsample=False,
3
smooth=False):
Copied!
  docstring:
1
Apply a set of functions to edit an actor's look.
2
3
:param actor:
4
5
:param wireframe: if true, change look to wireframe (Default value =
6
False)
7
8
:param solid: if true change look to soi=lid (Default value = False)
9
10
:param color: specify new color (Default value = False)
11
12
:param line: if true, edit the line's look (Default value = False)
13
14
:param line_kwargs: specify width and color of line (Default value =
15
{})
16
17
:param upsample: if true, increase resolution (Default value = False)
18
19
:param downsample: if true, decrease resolution (Default value =
20
False)
21
22
:param smooth: if true, smoothen actor (Default value = False)
Copied!
Last modified 1yr ago