Refactor: improve interface for finding intersecting cells.

This commit is contained in:
Kristian Bendiksen
2024-01-03 09:34:09 +01:00
parent ffa117e736
commit 544e6974e7
29 changed files with 75 additions and 105 deletions

View File

@@ -71,8 +71,7 @@ int RimWellIADataAccess::elementIndex( cvf::Vec3d position )
auto part = m_caseData->femParts()->part( 0 );
std::vector<size_t> closeElements;
part->findIntersectingElementIndices( bb, &closeElements );
std::vector<size_t> closeElements = part->findIntersectingElementIndices( bb );
if ( closeElements.empty() ) return -1;
for ( auto elmIdx : closeElements )