julio
julio

Reputation: 1

Count quadtree quadrants number

I'm using a point quadtree and i need know how i can count the number of quadrants generated after insert the points on a quadtree?

Upvotes: 0

Views: 190

Answers (1)

AlexWien
AlexWien

Reputation: 28747

Either raise a counter in the insert method of the quadtree, or count it afterwards, by iterating through the quad tree.

Upvotes: 1

Related Questions