[vtkusers] vtk / python xyz graph

Gene Chiaramonte gchiaramonte at mail.com
Tue Jun 6 12:37:01 EDT 2000


I don't have an example for you, but you may want to check out
vtkCubeAxesActor in the /contrib directory.

>>>>

I'm trying to hack sphere.py. I've commented out the outline stuff that draws a box around the sphere and am now trying to draw the xyz axis as follows. This draws the axis but now I don't see the sphere. Any idea where I have screwed up? Thanks

axes = vtkCubeAxesActor2D()
axes.SetInput(sample.GetOutput())
axes.SetCamera(ren.GetActiveCamera())
axes.SetLabelFormat("%6.4g")
axes.ShadowOn()
#axes.SetFlyModeToOuterEdges()
#axes.SetFontFactor(.8)
#axes.GetProperty().SetColor(1,0,1)

# Add the actors to the renderer, set the background and size
#
#ren.AddActor(outlineActor)
ren.AddActor(axes)
______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup





More information about the vtkusers mailing list