]> git.mxchange.org Git - simgear.git/blobdiff - simgear/bvh/BVHNearestPointVisitor.hxx
Fix HTTP unit-test
[simgear.git] / simgear / bvh / BVHNearestPointVisitor.hxx
index 5b5e1975291b05cc5959dd578eefc417665b5ecf..7b3a5bbf4f650b2f7c4a64d07cb6e1577678f7b0 100644 (file)
@@ -24,6 +24,7 @@
 
 #include "BVHNode.hxx"
 #include "BVHGroup.hxx"
+#include "BVHPageNode.hxx"
 #include "BVHTransform.hxx"
 #include "BVHLineGeometry.hxx"
 #include "BVHStaticGeometry.hxx"
@@ -52,6 +53,12 @@ public:
             return;
         leaf.traverse(*this);
     }
+    virtual void apply(BVHPageNode& leaf)
+    {
+        if (!intersects(_sphere, leaf.getBoundingSphere()))
+            return;
+        leaf.traverse(*this);
+    }
     virtual void apply(BVHTransform& transform)
     {
         if (!intersects(_sphere, transform.getBoundingSphere()))