X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FOctree.cc;fp=src%2FMoof%2FOctree.cc;h=bd1b410a6faa17cbc837df55527646b54c5232fb;hp=300dbcdea7a9f2537d0499667374f22d777c2cb3;hb=1dd005530930657fd6216edc1dfcfa4c270a81c9;hpb=f72400af4fa3e7b54dab154b5a2b6503a6f9af18 diff --git a/src/Moof/Octree.cc b/src/Moof/Octree.cc index 300dbcd..bd1b410 100644 --- a/src/Moof/Octree.cc +++ b/src/Moof/Octree.cc @@ -66,6 +66,9 @@ OctreeNodeP Octree::insert(EntityP entity, OctreeNodeP node) entity->getAabb().max[2] < node->getAabb().max[2] && entity->getAabb().min[2] > node->getAabb().min[2])) { + // TODO this check is only needed for the root node, if we're inside the + // volume of the root node, we'll be fully inside the child as + // determined by trying to insert the parent node goto done; }