mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 01:12:11 -05:00
Refactor: improve interface for finding intersecting cells.
This commit is contained in:
1 parent
ffa117e736
commit
544e6974e7
29 files changed
+75
-105
No files matched your search
@@ -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 )
|
||||
|
||||
Reference in new issue
Block a user