#9588 Accumulate N cells for AABB tree

This commit is contained in:
Magne Sjaastad
2022-12-19 15:24:53 +01:00
committed by GitHub
parent 42f3316619
commit 38bfa9ef1f
11 changed files with 211 additions and 60 deletions

View File

@@ -753,14 +753,11 @@ private:
const std::array<size_t, 8>& cellIndices = wellCell.cornerIndices();
cvf::BoundingBox& cellBB = m_cellBoundingBoxes[cIdx];
cellBB.add( nodes[cellIndices[0]] );
cellBB.add( nodes[cellIndices[1]] );
cellBB.add( nodes[cellIndices[2]] );
cellBB.add( nodes[cellIndices[3]] );
cellBB.add( nodes[cellIndices[4]] );
cellBB.add( nodes[cellIndices[5]] );
cellBB.add( nodes[cellIndices[6]] );
cellBB.add( nodes[cellIndices[7]] );
for ( size_t i : cellIndices )
{
cellBB.add( nodes[i] );
}
}
m_cellSearchTree.buildTreeFromBoundingBoxes( m_cellBoundingBoxes, nullptr );