From 10eb2cb011ebe6fbf5210892a220d6c31fc40834 Mon Sep 17 00:00:00 2001 From: jonjenssen Date: Thu, 14 Dec 2023 20:13:58 +0100 Subject: [PATCH] Fault Reactivation: flip Y axis in local model coordinates. --- .../ReservoirDataModel/RigFaultReactivationModelGenerator.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ApplicationLibCode/ReservoirDataModel/RigFaultReactivationModelGenerator.cpp b/ApplicationLibCode/ReservoirDataModel/RigFaultReactivationModelGenerator.cpp index 3f7142df90..55740bb665 100644 --- a/ApplicationLibCode/ReservoirDataModel/RigFaultReactivationModelGenerator.cpp +++ b/ApplicationLibCode/ReservoirDataModel/RigFaultReactivationModelGenerator.cpp @@ -154,6 +154,8 @@ void RigFaultReactivationModelGenerator::setupLocalCoordinateTransform() { auto [xNormal, yNormal] = modelLocalNormalsXY(); + yNormal = -1.0 * yNormal; + m_localCoordTransform = cvf::Mat4d::fromCoordSystemAxes( &xNormal, &yNormal, &cvf::Vec3d::Z_AXIS ); cvf::Vec3d center = m_startPosition * -1.0; center.z() = 0.0;