Exported coordinate fix (#11283)

Make sure exported well path coordinates use local coord system when needed.
This commit is contained in:
jonjenssen
2024-03-12 16:57:16 +01:00
committed by GitHub
parent f411b5fabe
commit cb1e062e99
6 changed files with 27 additions and 1 deletions

View File

@@ -834,6 +834,10 @@ bool RifFaultReactivationModelExporter::exportModelSettings( const RimFaultReact
auto [topPosition, bottomPosition] = model->faultTopBottom();
auto faultNormal = model->modelNormal();
// make sure we export in local coordinates, if that is used
topPosition = model->transformPointIfNeeded( topPosition );
bottomPosition = model->transformPointIfNeeded( bottomPosition );
// make sure we move horizontally, and along the 2D model
faultNormal.z() = 0.0;
faultNormal.normalize();