Refactor: extract common code for converting sector box

This commit is contained in:
Kristian Bendiksen authored and JJ committed 2025-12-11 12:07:21 +01:00
1 parent ab708f5e0e
commit 101b4f4926
2 files changed
+193 -391

No files matched your search

@@ -34,6 +34,7 @@ class RimEclipseCase;
class RigSimulationInputSettings;
class RifOpmFlowDeckFile;
class RigSimWellData;
class RigBoundingBoxIjk;
namespace Opm
{
@@ -137,4 +138,13 @@ private:
const RigSimulationInputSettings& settings,
RifOpmFlowDeckFile& deckFile,
RecordProcessorFunc processorFunc );
// Helper function to transform bounding box from global to sector coordinates
// Returns bounding box with 0-based sector-relative coordinates
static std::expected<RigBoundingBoxIjk, QString> transformBoxToSectorCoordinates( const RigBoundingBoxIjk& inputBox,
const caf::VecIjk0& sectorMin,
const caf::VecIjk0& sectorMax,
const cvf::Vec3st& refinement,
const QString& keywordName,
const QString& recordIdentifier );
};