Hi John, I typically contruct the IntersectVisitor on the stack when I need it, rather than reusing the same one over and over again.
Robert. On 6/30/06, Argentieri, John-P63223 <[EMAIL PROTECTED]> wrote:
In our project, every entity is placed on a terrain. This updating is performed by using an intersectvisitor. I have a few questions about the most optimal way to perform the elevation tests etc. Should I create a new intersect visitor each and every time I test the elevation of the terrain? If I am not mistaken, I have to add a new line segment to the intersect visitor at every place I am interested in finding the elevation and normal. Can I then remove these line segments? The problem that I am having with the current way it is implemented is that sometimes, the hitlist is coming back as empty. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
