(#415) Use AABB tree for searching after cells

close to line segment for Eclipse cases
Fixed crash when well path geometry is empty
This commit is contained in:
Jacob Støren
2015-09-07 16:15:37 +02:00
parent 6440215d21
commit 3468160d8f
3 changed files with 11 additions and 5 deletions

View File

@@ -446,7 +446,7 @@ const RigFault* RigMainGrid::findFaultFromCellIndexAndCellFace(size_t reservoirC
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RigMainGrid::findIntersectingCells(const cvf::BoundingBox& inputBB, std::vector<size_t>* cellIndices)
void RigMainGrid::findIntersectingCells(const cvf::BoundingBox& inputBB, std::vector<size_t>* cellIndices) const
{
if (m_cellSearchTree.isNull())
{