mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#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:
@@ -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() ) )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user