mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2486 Wellpaths now reports correct MD in 2D intersection views
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include "Rim3dView.h"
|
||||
#include "RimPerforationInterval.h"
|
||||
#include "RimWellPath.h"
|
||||
#include "Rim2dIntersectionView.h"
|
||||
|
||||
#include "RiuMainWindow.h"
|
||||
|
||||
@@ -34,6 +35,7 @@
|
||||
|
||||
#include "cvfPart.h"
|
||||
#include "cvfVector3.h"
|
||||
#include "RivIntersectionPartMgr.h"
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -106,6 +108,16 @@ bool RicWellPathViewerEventHandler::handleEvent(const RicViewerEventObject& even
|
||||
cvf::ref<caf::DisplayCoordTransform> transForm = rimView->displayCoordTransform();
|
||||
cvf::Vec3d domainCoord = transForm->transformToDomainCoord(eventObject.m_globalIntersectionPoint);
|
||||
|
||||
auto intersectionView = dynamic_cast<Rim2dIntersectionView*>(rimView);
|
||||
if (intersectionView)
|
||||
{
|
||||
cvf::Mat4d unflatXf = intersectionView->flatIntersectionPartMgr()->unflattenTransformMatrix(domainCoord);
|
||||
if (!unflatXf.isZero())
|
||||
{
|
||||
domainCoord = domainCoord.getTransformedPoint(unflatXf);
|
||||
}
|
||||
}
|
||||
|
||||
double measuredDepth = wellPathSourceInfo->measuredDepth(wellPathTriangleIndex, domainCoord);
|
||||
|
||||
// NOTE: This computation was used to find the location for a fracture when clicking on a well path
|
||||
|
||||
Reference in New Issue
Block a user