Can anyone discuss effective setUserData strategies?
In my case, every SceneGraphObject has lots of metadata (pretty much for every group, xform, switch, shape, appearance and vertex) that I will need to use to support the wide variety of picking modalities that are planned for my application.
Should I go ahead and use each SGO's user data field, even down to the NodeComponent instances? Should I call setUserData with my metadata class instances, or a just an index into a collection of such instances that I manage? Are there any potential problems I need to be aware of?
Right now, I have to manage two trees: one for the scene graph and one for the model data/metadata. My code would be easier to understand and maintain if I could combine these trees and manage them as one (which I feel I should be able to do, primarily because , but as I do this I must still acheive acceptable rendering performance (and no garbage collection 'seizures'.)
Thanks for any advice.
