mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Removed invalid cells from bbox search tree.
Improving performance on startup and avoid possible stack exhaust error.
This commit is contained in:
parent
cd4c9e6ee0
commit
7737a713c5
@ -474,6 +474,9 @@ void RigMainGrid::buildCellSearchTree()
|
||||
for (size_t cIdx = 0; cIdx < cellCount; ++cIdx)
|
||||
{
|
||||
const caf::SizeTArray8& cellIndices = m_cells[cIdx].cornerIndices();
|
||||
|
||||
if (m_cells[cIdx].isInvalid()) continue;
|
||||
|
||||
cvf::BoundingBox& cellBB = cellBoundingBoxes[cIdx];
|
||||
cellBB.add(m_nodes[cellIndices[0]]);
|
||||
cellBB.add(m_nodes[cellIndices[1]]);
|
||||
|
Loading…
Reference in New Issue
Block a user