]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Octree.hh
more cleanup
[chaz/yoink] / src / Moof / Octree.hh
index 4dc0c5c7e460e801594585200e47d3a70bc34064..3614606fd911882dc96195cb28cedd3f83282120 100644 (file)
@@ -39,6 +39,7 @@
 #include <Moof/Aabb.hh>
 #include <Moof/Drawable.hh>
 #include <Moof/Entity.hh>
+#include <Moof/Log.hh>
 #include <Moof/Math.hh>
 #include <Moof/Sphere.hh>
        
@@ -138,6 +139,13 @@ class Octree
 
 public:
 
+       inline void print(OctreeNodeP node)
+       {
+               logDebug("-----");
+               logDebug("depth to node: %d", tree_.depth(node));
+               logDebug("size of node: %d", tree_.size(node));
+       }
+
        inline static OctreeP alloc(const OctreeNode& rootNode)
        {
                return OctreeP(new Octree(rootNode));
This page took 0.017329 seconds and 4 git commands to generate.