mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -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
@@ -203,14 +203,10 @@ void RimFracture::setStimPlanTimeIndexToPlot( int timeIndex )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<size_t> RimFracture::getPotentiallyFracturedCells( const RigMainGrid* mainGrid ) const
|
||||
{
|
||||
std::vector<size_t> cellindecies;
|
||||
if ( !mainGrid ) return cellindecies;
|
||||
if ( !mainGrid ) return {};
|
||||
|
||||
cvf::BoundingBox fractureBBox = boundingBoxInDomainCoords();
|
||||
|
||||
mainGrid->findIntersectingCells( fractureBBox, &cellindecies );
|
||||
|
||||
return cellindecies;
|
||||
return mainGrid->findIntersectingCells( fractureBBox );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user