mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3185 Use std::array instead of FixedArray
This commit is contained in:
@@ -626,17 +626,15 @@ void RigEclipseCaseData::computeActiveCellsGeometryBoundingBox()
|
||||
}
|
||||
else
|
||||
{
|
||||
std::array<cvf::Vec3d, 8> hexCorners;
|
||||
for (size_t i = 0; i < m_mainGrid->cellCount(); i++)
|
||||
{
|
||||
if (activeInfos[acIdx]->isActive(i))
|
||||
{
|
||||
const RigCell& c = m_mainGrid->globalCellArray()[i];
|
||||
const caf::SizeTArray8& indices = c.cornerIndices();
|
||||
|
||||
size_t idx;
|
||||
for (idx = 0; idx < 8; idx++)
|
||||
m_mainGrid->cellCornerVertices(i, hexCorners.data());
|
||||
for (const auto& corner : hexCorners)
|
||||
{
|
||||
bb.add(m_mainGrid->nodes()[indices[idx]]);
|
||||
bb.add(corner);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user