[vtkusers] vtkAxesActor bug?
    Marius S Giurgi 
    rendezvous at dreamxplosion.com
       
    Fri Jan 21 17:05:11 EST 2005
    
    
  
As I wasn't satisfied with the vtkAxes class I thought I'd give the 
vtkAxesActor a try, as it has a lot more features and controls over the 
shape of the axes (tips, labels).. Unfortunately there are a few 
problems with this class (in the CVS build), namely
it seems that toggling between wireframe/surface (key press w / s) 
crashes the application (bus error).
here's a simple tcl source I tried. (I added a sphere also just for 
testing purposes).
Any idea why this is happening? Can this be fixed?
package require vtk
package require vtkinteraction
# Axes
vtkAxesActor axes
   axes SetShaftTypeToCylinder
   axes SetCylinderRadius 0.02
   axes SetConeRadius 0.2
# Renderer
vtkRenderer ren1
   ren1 SetBackground 0.2 0.2 0.2
# Render Window
vtkRenderWindow renWin
   renWin AddRenderer ren1
# Interactor
vtkInteractorStyleTerrain terrainStyle
vtkRenderWindowInteractor iren
   iren SetRenderWindow renWin
   iren SetInteractorStyle terrainStyle
   iren AddObserver UserEvent {wm deiconify .vtkInteract}
   iren Initialize
wm withdraw .
ren1 AddActor axes
# render
renWin Render
    
    
More information about the vtkusers
mailing list