From 49253f4907f1b6017ad06dda2f148e028ef0bec6 Mon Sep 17 00:00:00 2001 From: MitchellHansen Date: Fri, 24 Feb 2017 21:07:44 -0800 Subject: [PATCH] small tweak --- include/Map.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/Map.h b/include/Map.h index c448c42..cc75b52 100644 --- a/include/Map.h +++ b/include/Map.h @@ -104,6 +104,8 @@ public: while (dimension > 1) { + // Do the logic steps to find which sub oct we step down into + if (position.x >= (dimension / 2) + quad_position.x) { quad_position.x += (dimension / 2); scale_stack.at(log2(OCT_DIM) - log2(dimension)).set(0); @@ -117,7 +119,12 @@ public: scale_stack.at(log2(OCT_DIM) - log2(dimension)).set(2); } + // Set the new dimension dimension /= 2; + + + + } uint64_t child1 = block_stack.front()[index];