Assume one had a scenegraph with some loaded objects (Group nodes under a root scenegraph), and that you traversed the children of one of the groups down to a Geometry under a Geode.
Then a pointer to a vertex in the Geometry's vertex array is created, so we reference the vertex array (increment the ref count) to account for the pointer we created. Later, we remove the group we started with (say, removing an object such as a car or a tree from the scenegraph). This should unreference the group, it's children, and so on, to remove the object from the scenegraph. What happens to the lone VertexArray that still has a reference (non-zero ref count)? I assume it's orphaned, but would *JUST* the vertex array remain in memory, or would this prevent its parent Geometry from being removed, and thus the parent Geode, etc.? Granted, removing the object while holding a reference is "a bad thing" (bad design), but I am curious about how the components are related and if it's "just" an orphaned array or if there are other orphaned components because of it. Thanks for any insight, Bill Prendergast _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
