mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Refactor: improve interface for finding intersecting cells.
This commit is contained in:
@@ -54,8 +54,7 @@ cvf::Vec3d RigStimPlanModelTools::calculateTSTDirection( RigEclipseCaseData* ecl
|
||||
|
||||
// Find upper face of cells close to the anchor point
|
||||
cvf::BoundingBox boundingBox( anchorPosition - boundingBoxSize, anchorPosition + boundingBoxSize );
|
||||
std::vector<size_t> closeCells;
|
||||
mainGrid->findIntersectingCells( boundingBox, &closeCells );
|
||||
std::vector<size_t> closeCells = mainGrid->findIntersectingCells( boundingBox );
|
||||
|
||||
// The stratigraphic thickness is the averge of normals of the top face
|
||||
cvf::Vec3d direction = cvf::Vec3d::ZERO;
|
||||
|
||||
Reference in New Issue
Block a user