Hi, In the most case, you node only get one parent, so getParent(0) is safe... You can also consider that if you node is in the scene graph, the parent(0) is valid. I you do getParent(i) with i>0, you have to check the parent you get, if null or not ...
Hope this help. Regards, Vincent 2009/4/23 Wangjian <[email protected]> > Hi, > Can you tell me the meaning of the node->getParent(0)?Why is it not > node->getParent(1) or node->getParent(2)? > > Thank you. > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=10723#10723 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

