Hi Sanat,

Code:
const osg::NodePath& nodePath = picker->getFirstIntersection().nodePath;


is only giving you the first intersection, which may not be either of your 
models (it could be terrain, for example).  I'm guessing you need to search the 
entire set rather than just trying the first intersection.


Code:

Intersections& osgUtil::PolytopeIntersector::getIntersections   ()
typedef std::set<Intersection> osgUtil::PolytopeIntersector::Intersections





Cheers,
Tom

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=37335#37335





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to