#include "BVHNode.hxx"
#include "BVHGroup.hxx"
+#include "BVHPageNode.hxx"
#include "BVHTransform.hxx"
#include "BVHMotionTransform.hxx"
#include "BVHLineGeometry.hxx"
return;
group.traverse(*this);
}
+
+void
+BVHLineSegmentVisitor::apply(BVHPageNode& pageNode)
+{
+ if (!intersects(_lineSegment, pageNode.getBoundingSphere()))
+ return;
+ pageNode.traverse(*this);
+}
void
BVHLineSegmentVisitor::apply(BVHTransform& transform)