I've been using collections of actors to represent collections
of objects in vtk until I found out about the vtkAssembly.
However, since I started using vtkAssemblies, they have
been very troublesome to me (so maybe I'm not using them
in the correct way). Here's the first of my problems:
I append actors one by one to the assembly.
Then, I pass
the assembly to the renderer to display it. Next, I pick an
actor on the screen and display its address. When I print out
all the actors in my original assembly one by one (using
GetNextPart()), none of them match the address of the actor
that I picked. This leads me to believe that the vtkAssembly
makes copies of the original actors passed into it, and loses
track of the originals. Is there a reason why vtkAssembly
does this? Any way to change it? Or should I not use
vtkAssemblies? One of the specific things I want to do is
pick an actor an explicitly delete it from the original
vtkAssembly. Maybe there is another way to do it...
Any suggestions?
Thanks,
Tom
--
------------------
Tomasz Lukasiak
tcl@lems.brown.edu
------------------