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

@@ -1025,13 +1025,12 @@ void RigGeoMechWellLogExtractor::calculateIntersection()
//--------------------------------------------------------------------------------------------------
std::vector<size_t> RigGeoMechWellLogExtractor::findCloseCells( const cvf::BoundingBox& bb )
{
std::vector<size_t> closeCells;
if ( m_caseData->femParts()->partCount() )
{
m_caseData->femParts()->part( m_partId )->findIntersectingElementIndices( bb, &closeCells );
return m_caseData->femParts()->part( m_partId )->findIntersectingElementIndices( bb );
}
return closeCells;
return {};
}
//--------------------------------------------------------------------------------------------------