Quadtree
Quadtree copied to clipboard
How to get the number of objects saved in a certain node?
Hi, I wonder how can I get the number of objects saved in a certain node, e.g:a LEAF node or POINTER? If I want to limit the objects in leaf node, for example, if the objects in a node are over 10, then it should split to deeper, and can not be LEAF node. How can I achieve that? Also, how to know the depth of the tree? Thanks.
I have this problem too
It's splitting into four sub tress whenever a new node has been added. To modify this behaviour one should use a collection to contain generic data, write their own insert function and determine the threshold.