[vtkusers] about the list of the objects
Leon Chen
liming.leon at gmail.com
Thu Jul 21 22:21:30 EDT 2005
Hi everyone,
Sorry for bothering... hope you will not mind my frequent question... :P
-----
I have to deal with a lot of polydata file, say 10(or 1000...), then
process them - as a general example, average them. (actually more
complicated, but for PCA situation, i can use specific class, it's
easy)
So I have to read them one by one, vtkPolyDataReader will do it, maybe
i want to display them, so mapping... actor...add actor... maybe some
filters. Now there are 2 problems
* How can I show then? so I have to create 10 (or 1000?!) mappers?
actors? then add them into the renderer?! it sounds terrible... I
check the class library, so can I use the vtkActorCollections or
something like that? use the subclass from the vtkCollection? then add
them one by one to the renderer in a loop ? is it more clever? or is
there another better way?
* As for polydata, is there any simple way average them? or I can only
add them together from vtkPolydataCollection, in a double loop ( each
polydata, each point ) , then divide the toal number...
I think that's I am worry about. Thank you in advance!!!!
Leon
More information about the vtkusers
mailing list