Hi Sahar, What doesn't work with the bounding-box code? Does it display the wrong bbox? Does it crash?
On 19/02/13 18:14, Sahar Aseeri wrote: > group->addChild(lineGeode); > > group->addChild( model1 ); > group->addChild( model2 ); > > int index1; > index1=0; > > osg::Geometry* geome = > group->getChild(index1)->asGeode()->getDrawable(0)->asGeometry(); > osg::BoundingBox bb=geome->getBound(); You're getting the bounding box of the first child, which is 'lineGeode'. This is most likely not what you want. Cheers, /ulrich _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org