Hello Cristina,

I am using a LineSegmentIntersector to determine all the intersections in my 
scene. In the osgUtil::LineSegmentIntersector::Intersections multiset, is the 
first intersection in the set the closest to the startPoint?

Yes. The set automatically orders based on Intersection's operator<(), which returns the ratio variable, which is 0.0 at the start point and 1.0 at the end point, so the first intersection in the set will be the closest to the start.

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to