mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-08 23:35:03 -06:00
Refactor: Change RigGridBase::cellCornerVertices to return std::array
Refactored RigGridBase::cellCornerVertices to return std::array<cvf::Vec3d, 8> by value instead of taking a reference to std::array as an output parameter. This change improves code readability and leverages modern C++ return value optimizations. Updated all call sites across the codebase to reflect the new function signature.
This commit is contained in:
1 parent
da69eef72b
commit
10182e99a7
41 files changed
+148
-214
No files matched your search
@@ -38,12 +38,12 @@ class RivFemIntersectionGrid : public RivIntersectionHexGridInterface
|
||||
public:
|
||||
explicit RivFemIntersectionGrid( const RigFemPartCollection* femParts, const RimGeoMechPartCollection* parts );
|
||||
|
||||
cvf::Vec3d displayOffset() const override;
|
||||
cvf::BoundingBox boundingBox() const override;
|
||||
std::vector<size_t> findIntersectingCells( const cvf::BoundingBox& intersectingBB ) const override;
|
||||
bool useCell( size_t cellIndex ) const override;
|
||||
void cellCornerVertices( size_t cellIndex, std::array<cvf::Vec3d, 8>& cellCorners ) const override;
|
||||
void cellCornerIndices( size_t cellIndex, std::array<size_t, 8>& cornerIndices ) const override;
|
||||
cvf::Vec3d displayOffset() const override;
|
||||
cvf::BoundingBox boundingBox() const override;
|
||||
std::vector<size_t> findIntersectingCells( const cvf::BoundingBox& intersectingBB ) const override;
|
||||
bool useCell( size_t cellIndex ) const override;
|
||||
std::array<cvf::Vec3d, 8> cellCornerVertices( size_t cellIndex ) const override;
|
||||
std::array<size_t, 8> cellCornerIndices( size_t cellIndex ) const override;
|
||||
const RigFault* findFaultFromCellIndexAndCellFace( size_t reservoirCellIndex, cvf::StructGridInterface::FaceType face ) const override;
|
||||
void setKIntervalFilter( bool enabled, std::string kIntervalStr ) override;
|
||||
|
||||
|
||||
Reference in new issue
Block a user