diff options
Diffstat (limited to 'src/core/kdtree.hpp')
-rw-r--r-- | src/core/kdtree.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/kdtree.hpp b/src/core/kdtree.hpp index c7f66ebff..59f3da810 100644 --- a/src/core/kdtree.hpp +++ b/src/core/kdtree.hpp @@ -373,6 +373,17 @@ public: } /** + * Clear the tree. + */ + void Clear() + { + this->nodes.clear(); + this->free_list.clear(); + this->unbalanced = 0; + return; + } + + /** * Reconstruct the tree with the same elements, letting it be fully balanced. */ void Rebuild() |