mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-11 07:56:08 -06:00
#3351 Well Path: Show calculated tangent, and use as default
This commit is contained in:
parent
27bbaff56b
commit
8b509d2f5a
@ -77,6 +77,7 @@ bool RicCreateWellTargetsPickEventHandler::handlePickEvent(const Ric3DPickEvent&
|
||||
}
|
||||
cvf::Vec3d referencePoint = m_geometryToAddTargetsTo->referencePointXyz();
|
||||
cvf::Vec3d relativeTagetPoint = domainCoord - referencePoint;
|
||||
|
||||
RimWellPathTarget* newTarget = new RimWellPathTarget;
|
||||
newTarget->setAsPointTargetXYD(cvf::Vec3d(relativeTagetPoint.x(), relativeTagetPoint.y(), -relativeTagetPoint.z()));
|
||||
|
||||
|
@ -392,6 +392,7 @@ std::vector<cvf::Vec3d> RimWellPathGeometryDef::lineArcEndpoints() const
|
||||
prevSegmentEndAzi = jCurve.endAzimuth();
|
||||
prevSegmentEndInc = jCurve.endInclination();
|
||||
|
||||
target2->setDerivedTangent(prevSegmentEndAzi, prevSegmentEndInc);
|
||||
}
|
||||
|
||||
else if ( target1->targetType() == RimWellPathTarget::POINT
|
||||
@ -409,6 +410,8 @@ std::vector<cvf::Vec3d> RimWellPathGeometryDef::lineArcEndpoints() const
|
||||
endPoints.push_back( target2->targetPointXYZ() + m_referencePointXyz() );
|
||||
prevSegmentEndAzi = jCurve.endAzimuth();
|
||||
prevSegmentEndInc = jCurve.endInclination();
|
||||
|
||||
target2->setDerivedTangent(prevSegmentEndAzi, prevSegmentEndInc);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user