Quadtree icon indicating copy to clipboard operation
Quadtree copied to clipboard

How to get the number of objects saved in a certain node?

Open xysoul opened this issue 8 years ago • 2 comments

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.

xysoul avatar Mar 24 '17 05:03 xysoul

I have this problem too

whaqzhzd avatar Mar 25 '17 04:03 whaqzhzd

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.

ConfusedLolo avatar Mar 03 '22 09:03 ConfusedLolo