[osg-submissions] Add LineSegmentIntersector::setStart() and setEnd() methods

Jean-Sébastien Guay jean-sebastien.guay at polymtl.ca
Sat Aug 11 20:13:51 PDT 2007


Hello Robert,

I was recently in a situation where I had to do lots of intersection tests
(a couple hundred at least per vertex in a model), and it turned out,  
for some reason, that the LineSegmentIntersector construction and  
destruction were eating some small but significant amount of time. So  
I wanted to create a static LineSegmentIntersector and just reset() it  
and set its start and end points each time the intersection function  
was called. But the class had no setters for the start and end.

This adds osgUtil::LineSegmentIntersector::setStart(osg::Vec3d) and  
setEnd(osg::Vec3d).

J-S
-- 
______________________________________________________
Jean-Sebastien Guay     jean-sebastien.guay at polymtl.ca
                         http://whitestar02.webhop.org/

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: LineSegmentIntersector
Type: text/x-c
Size: 4743 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20070811/0cabb6f9/attachment.bin 


More information about the osg-submissions mailing list