[osg-users] Pick multiple node
Vincent Bourdier
vincent.bourdier at gmail.com
Tue Apr 1 02:03:55 PDT 2008
Hi Robert,
Thanks very much I understand well why I have these results.
I'll see how I can manage it.
Thanks a lot.
Regards,
Vincent.
2008/4/1, Robert Osfield <robert.osfield at gmail.com>:
>
> 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
> <vincent.bourdier at gmail.com> 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 at lists.openscenegraph.org
> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> >
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080401/09f99a77/attachment.html
More information about the osg-users
mailing list