Hi Jean, Yes, I have the local bounding spheres of each of the child nodes. But I'm still not clear what I need to do to join all the bounding spheres of the child nodes for the entire model ?
In the code below I'm loading the lwo files and creating local bounding spheres for each of the components: Code: //load the CAD files: Backhoe = new osg::Group(); Stick = new osg::Node(); Boom = new osg::Node(); Target = new osg::Node(); Bucket = new osg::Node(); Track = new osg::Node(); Cabin = new osg::Node(); LoadBack = new osg::Node(); Stick = osgDB::readNodeFile("_BHStic_.lwo"); Boom = osgDB::readNodeFile("_BHBoom_.lwo"); Target = osgDB::readNodeFile("_BHTarg_.ac"); Bucket = osgDB::readNodeFile("_BHBuck_.lwo"); Track = osgDB::readNodeFile("_BHTrac_.lwo"); Cabin = osgDB::readNodeFile("_BHCabi_.lwo"); LoadBack = osgDB::readNodeFile("_BHLdBk_.lwo"); //bounding spheres: //initialize here itself (unitialized references cannot exist) const osg::BoundingSphere& StickSphere = Stick->getBound(); const osg::BoundingSphere& BoomSphere = Boom->getBound(); const osg::BoundingSphere& TargetSphere = Bucket->getBound(); const osg::BoundingSphere& BucketSphere = Cabin->getBound(); const osg::BoundingSphere& TrackSphere = Target->getBound(); const osg::BoundingSphere& CabinSphere = LoadBack->getBound(); const osg::BoundingSphere& LoadBackSphere = Track->getBound(); Thanks, Sanat ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30979#30979 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org