Use triangle sphere intersection directly.

Modified Files:
	simgear/scene/bvh/BVHSubTreeCollector.cxx
This commit is contained in:
frohlich
2009-03-15 12:56:02 +00:00
committed by Tim Moore
parent 61084cf1ba
commit 88baaa72be

View File

@@ -183,7 +183,7 @@ void
BVHSubTreeCollector::apply(const BVHStaticTriangle& node,
const BVHStaticData& data)
{
if (!intersects(_sphere, node.computeBoundingBox(data)))
if (!intersects(_sphere, node.getTriangle(data)))
return;
_staticNode = &node;
}