mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
AABB Tree : Do resize based on number of leaf nodes
This commit is contained in:
parent
b958db0b1f
commit
6f54d176cc
@ -515,6 +515,8 @@ bool AABBTree::buildTree()
|
||||
|
||||
if (m_iNumLeaves == 0) return true;
|
||||
|
||||
m_nodePool.resize(m_iNumLeaves);
|
||||
|
||||
// Then find the bounding box of all items in the tree
|
||||
cvf::BoundingBox box;
|
||||
leafBoundingBox(box, 0, m_iNumLeaves - 1);
|
||||
|
Loading…
Reference in New Issue
Block a user