Skip to main content

Some important properties - TVTK

(For how to access object properties see this post)

...
fig = mlab.figure(browser = False)
...
s = mlab.Surf(x,y,z)
...

s.actors[0].property.

.representation =
  • 'w' wireframe
  • 's' surface
.opacity = 0...1
.interpolation =
  • 'flat'
  • 'gouraud'
  • 'phong'
.ambient = 0...1 #uniform (direction independent) lighting on surface
.color = [r,g,b]
.specular = 0...1
.specular_color = [r,g,b]
.specular_power =0...1

Comments