HI Vincent, The osgUtil::IntersectionVisitor will return multiple Intersection objects if there are multiple intersections with a geometry. For instance when a ray goes through a box it'll produce two hits, if it goes through a plane it'll produce one. There are exceptions that do to numerical precision it'll return two hits for a plane when the ray hits the edge between two triangles.
If you just want high level hit info such as what objects have been hit rather than low level where exactly are the intersection points then just pick the nearest intersection, or sort the results so that you only have on intersection per separate object. It's worth remembering that the OSG IntersectionVisitor is a general purpose utility class so has to provide a the full spectrum of results rather than prefiltering it. Robert. On Tue, Apr 1, 2008 at 9:31 AM, Vincent Bourdier <[EMAIL PROTECTED]> wrote: > Hi all, > > For my application, I use the picking. but there is something strange : > > When I pick a node (geode) I get a list of node path... so all is good... > but in the list, the same nodepath can appear more that one time, sometimes > two, sometimes four... > > > Is there any reason for that ? Or what can make this result ? > > Thanks, > > Regards. > Vincent. > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org