#5458 New well path targets copy air gap from existing well path when picking

* If we're picking a point on an existing well path, copy the air gap.
This commit is contained in:
Gaute Lindkvist
2020-02-06 16:23:21 +01:00
parent 610a315e14
commit 33a319d504

View File

@@ -106,13 +106,17 @@ bool RicCreateWellTargetsPickEventHandler::handle3dPickEvent( const Ric3dPickEve
{ {
targetPointInDomain = wellPathSourceInfo->closestPointOnCenterLine( firstPickItem.faceIdx(), targetPointInDomain = wellPathSourceInfo->closestPointOnCenterLine( firstPickItem.faceIdx(),
intersectionPointInDomain ); intersectionPointInDomain );
double md = wellPathSourceInfo->measuredDepth( firstPickItem.faceIdx(), intersectionPointInDomain ); double md = wellPathSourceInfo->measuredDepth( firstPickItem.faceIdx(), intersectionPointInDomain );
doSetAzimuthAndInclination = doSetAzimuthAndInclination =
calculateAzimuthAndInclinationAtMd( md, calculateAzimuthAndInclinationAtMd( md,
wellPathSourceInfo->wellPath()->wellPathGeometry(), wellPathSourceInfo->wellPath()->wellPathGeometry(),
&azimuth, &azimuth,
&inclination ); &inclination );
double rkbDiff = wellPathSourceInfo->wellPath()->wellPathGeometry()->rkbDiff();
if ( m_geometryToAddTargetsTo->airGap() == 0.0 && rkbDiff != std::numeric_limits<double>::infinity() )
{
m_geometryToAddTargetsTo->setAirGap( rkbDiff );
}
} }
else if ( isGridSourceObject( firstPickItem.sourceInfo() ) ) else if ( isGridSourceObject( firstPickItem.sourceInfo() ) )
{ {