Added optional control of whether to use KdTrees for intersections

This commit is contained in:
Robert Osfield
2008-07-08 17:35:10 +00:00
parent 134c86c2d5
commit 2851429333
3 changed files with 19 additions and 10 deletions

View File

@@ -155,6 +155,8 @@ IntersectionVisitor::IntersectionVisitor(Intersector* intersector, ReadCallback*
// override the default node visitor mode.
setTraversalMode(osg::NodeVisitor::TRAVERSE_ACTIVE_CHILDREN);
_useKdTreesWhenAvailable = true;
setIntersector(intersector);
setReadCallback(readCallback);