]> git.mxchange.org Git - simgear.git/commitdiff
Use triangle sphere intersection directly.
authorfrohlich <frohlich>
Sun, 15 Mar 2009 12:56:02 +0000 (12:56 +0000)
committerTim Moore <timoore@redhat.com>
Wed, 18 Mar 2009 06:53:50 +0000 (07:53 +0100)
Modified Files:
simgear/scene/bvh/BVHSubTreeCollector.cxx

simgear/scene/bvh/BVHSubTreeCollector.cxx

index 1e3484ece3990644d20ca549acd1ad8bf5590fb2..156c375681c444f5f40325c41f712082622255d3 100644 (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;
 }