[vtkusers] vtkFollower won't move with vtkAssembly?

Chen, Elvis anisotropic7 at yahoo.ca
Tue Feb 19 12:59:28 EST 2002


Greetings,

I'm trying to create a vtkAssembly that contains
several vtkFollower.  However, whenever I move the
vtkAssembly, the vtkFollower won't move with it.  Does
it work?

I'm using vtk 4.0 (RC) with python 2.2.  Sample code
is attached below:


# femoral insertions
PCLftext = vtkVectorText()
PCLftext.SetText( 'PCL Femur' )
PCLftextMapper = vtkPolyDataMapper()
PCLftextMapper.SetInput( PCLftext.GetOutput() )
PCLftextActor = vtkFollower()
PCLftextActor.SetMapper( PCLftextMapper )
PCLftextActor.SetPosition( xx, yy, zz )

femurAssembly = vtkAssembly()
femurAssembly.AddPart( PCLftextActor )
femurAssembly.AddPosition( x, y, z )

thanx in advance,

______________________________________________________________________ 
Web-hosting solutions for home and business! http://website.yahoo.ca



More information about the vtkusers mailing list