Improve handling of LGRs in cell filters (#7783)

* Improve handling of LGRs in cell filters
This commit is contained in:
jonjenssen
2021-06-16 17:31:25 +02:00
committed by GitHub
parent 24c2eeb022
commit a4fd24a15a
15 changed files with 163 additions and 83 deletions

View File

@@ -430,9 +430,9 @@ cvf::BoundingBox RigCell::boundingBox() const
cvf::BoundingBox bb;
std::array<cvf::Vec3d, 8> hexCorners;
if ( m_hostGrid && m_hostGrid->mainGrid() )
if ( m_hostGrid )
{
m_hostGrid->mainGrid()->cellCornerVertices( mainGridCellIndex(), hexCorners.data() );
m_hostGrid->cellCornerVertices( m_gridLocalCellIndex, hexCorners.data() );
for ( const auto& corner : hexCorners )
{
bb.add( corner );
@@ -442,7 +442,7 @@ cvf::BoundingBox RigCell::boundingBox() const
}
//--------------------------------------------------------------------------------------------------
/// Return the neighbor cell of the given face
/// Return the main grid neighbor cell of the given face
//--------------------------------------------------------------------------------------------------
RigCell RigCell::neighborCell( cvf::StructGridInterface::FaceType face ) const
{