#1584 Replace cvf::vec3d[8] with std::array<cvf::vec3d, 8>

This commit is contained in:
Kristian Bendiksen committed 2025-09-03 14:21:19 +02:00
1 parent 7b34d7f103
commit da69eef72b
43 files changed
+150 -126

No files matched your search

+3 -2
View File
@@ -39,6 +39,7 @@
#include "cvfBoundingBox.h"
#include <algorithm>
#include <array>
namespace caf
{
@@ -372,8 +373,8 @@ void StructGridInterface::computeCharacteristicCellSize( const std::vector<size_
double jLengthAccumulated = 0.0;
double kLengthAccumulated = 0.0;
cvf::Vec3d cornerVerts[8];
size_t evaluatedCellCount = 0;
std::array<cvf::Vec3d, 8> cornerVerts;
size_t evaluatedCellCount = 0;
// Evaluate N-th cells, compute the stride between each index
size_t stride = std::max( size_t( 1 ), globalCellIndices.size() / 100 );