#include "BVHSubTreeCollector.hxx"
#include <simgear/math/SGGeometry.hxx>
+#include <cassert>
#include "BVHNode.hxx"
#include "BVHGroup.hxx"
BVHSubTreeCollector::apply(const BVHStaticTriangle& node,
const BVHStaticData& data)
{
- if (!intersects(_sphere, node.computeBoundingBox(data)))
+ if (!intersects(_sphere, node.getTriangle(data)))
return;
_staticNode = &node;
}