Fault Reactivation: flip Y axis in local model coordinates.

This commit is contained in:
jonjenssen 2023-12-14 20:13:58 +01:00 committed by jonjenssen
parent 1fab743d56
commit 293594ebf6

View File

@ -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;