]> git.mxchange.org Git - simgear.git/blobdiff - simgear/bvh/BVHSubTreeCollector.cxx
Fix VS2010 lack of fminf
[simgear.git] / simgear / bvh / BVHSubTreeCollector.cxx
index 5c8a915ce431c989366976cac03cd39da6c904de..6928dc7be3e017dbed81fda50a6e012ae2e644e5 100644 (file)
@@ -59,6 +59,22 @@ BVHSubTreeCollector::apply(BVHGroup& group)
     popNodeList(parentNodeList);
 }
 
+void
+BVHSubTreeCollector::apply(BVHPageNode& group)
+{
+    if (!intersects(_sphere, group.getBoundingSphere()))
+        return;
+
+    // The _nodeList content is somehow the 'return value' of the subtree.
+    // Set it to zero to see if we have something to collect down there.
+    NodeList parentNodeList;
+    pushNodeList(parentNodeList);
+
+    group.traverse(*this);
+    
+    popNodeList(parentNodeList);
+}
+
 void
 BVHSubTreeCollector::apply(BVHTransform& transform)
 {