From: frohlich Date: Sun, 15 Mar 2009 12:56:02 +0000 (+0000) Subject: Use triangle sphere intersection directly. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=88baaa72be7ee36e25b7afcd34c2fead6245324a;p=simgear.git Use triangle sphere intersection directly. Modified Files: simgear/scene/bvh/BVHSubTreeCollector.cxx --- diff --git a/simgear/scene/bvh/BVHSubTreeCollector.cxx b/simgear/scene/bvh/BVHSubTreeCollector.cxx index 1e3484ec..156c3756 100644 --- a/simgear/scene/bvh/BVHSubTreeCollector.cxx +++ b/simgear/scene/bvh/BVHSubTreeCollector.cxx @@ -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; }