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,
|
BVHSubTreeCollector::apply(const BVHStaticTriangle& node,
|
||||||
const BVHStaticData& data)
|
const BVHStaticData& data)
|
||||||
{
|
{
|
||||||
if (!intersects(_sphere, node.computeBoundingBox(data)))
|
if (!intersects(_sphere, node.getTriangle(data)))
|
||||||
return;
|
return;
|
||||||
_staticNode = &node;
|
_staticNode = &node;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user