[vtkusers] 3D axis that follows main actor: Python / wxWindows / VTK

Uwe Rempler rempler at mechbau.uni-stuttgart.de
Thu Feb 5 13:49:32 EST 2004


ups - just realized that with VTK v4.5.0 (CVS 22.01.04) this code isn't 
quite working like in VTK v4.2.4...
don't know why but for some circumstances the layernumbers of the 
renderers have to be changed depending on VTK version - think you just 
have to try it for yourself...

VTK v4.2.4:
-----------
self.renwin.AddRenderer(self.axisRenderer)
self.renwin.SetNumberOfLayers(2)
self.main.ren.SetLayer(1)           # <--
self.axisRenderer.SetLayer(0)       # <--

VTK v4.5.0:
-----------
self.renwin.AddRenderer(self.axisRenderer)
self.renwin.SetNumberOfLayers(2)
self.main.ren.SetLayer(0)           # <--
self.axisRenderer.SetLayer(1)       # <--

maybe someone else knows the reason...

greetings
uwe



More information about the vtkusers mailing list