mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added framework used to handle utm area of interest
p4#: 21775
This commit is contained in:
@@ -511,6 +511,29 @@ void RigGridBase::coarseningBox(size_t coarseningBoxIndex, size_t* i1, size_t* i
|
||||
*k2 = box[5];
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::BoundingBox RigGridBase::boundingBox()
|
||||
{
|
||||
if (!m_boundingBox.isValid())
|
||||
{
|
||||
cvf::Vec3d cornerVerts[8];
|
||||
|
||||
for (size_t i = 0; i < cellCount(); i++)
|
||||
{
|
||||
cellCornerVertices(i, cornerVerts);
|
||||
|
||||
for (size_t j = 0; j < 8; j++)
|
||||
{
|
||||
m_boundingBox.add(cornerVerts[j]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return m_boundingBox;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user