X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FOctree.hh;h=3614606fd911882dc96195cb28cedd3f83282120;hp=4dc0c5c7e460e801594585200e47d3a70bc34064;hb=1dd005530930657fd6216edc1dfcfa4c270a81c9;hpb=f72400af4fa3e7b54dab154b5a2b6503a6f9af18 diff --git a/src/Moof/Octree.hh b/src/Moof/Octree.hh index 4dc0c5c..3614606 100644 --- a/src/Moof/Octree.hh +++ b/src/Moof/Octree.hh @@ -39,6 +39,7 @@ #include #include #include +#include #include #include @@ -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));