Use triangle sphere intersection directly.
Modified Files: simgear/scene/bvh/BVHSubTreeCollector.cxx
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user