mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7153 Fix laterals created from modeled well paths
This commit is contained in:
parent
d072138484
commit
639fdcc217
@ -403,11 +403,12 @@ RiaLineArcWellPathCalculator RimWellPathLateralGeometryDef::lineArcWellPathCalcu
|
||||
std::vector<RiaLineArcWellPathCalculator::WellTarget> targetDatas;
|
||||
|
||||
auto [pointVector, measuredDepths] = m_parentGeometry->clippedPointSubset( 0.0, m_connectionMdOnParentWellPath );
|
||||
cvf::Vec3d connectionPoint = anchorPointXyz();
|
||||
|
||||
auto N = pointVector.size();
|
||||
if ( N >= 2u )
|
||||
{
|
||||
targetDatas = createTargetsFromPoints( { pointVector[N - 2], pointVector[N - 1] } );
|
||||
targetDatas = createTargetsFromPoints( { pointVector[N - 2] - connectionPoint, pointVector[N - 1] - connectionPoint} );
|
||||
}
|
||||
|
||||
std::vector<RimWellPathTarget*> activeTargets = activeWellTargets();
|
||||
@ -417,7 +418,6 @@ RiaLineArcWellPathCalculator RimWellPathLateralGeometryDef::lineArcWellPathCalcu
|
||||
targetDatas.push_back( wellTarget->wellTargetData() );
|
||||
}
|
||||
|
||||
cvf::Vec3d connectionPoint = anchorPointXyz();
|
||||
|
||||
RiaLineArcWellPathCalculator wellPathCalculator( connectionPoint, targetDatas );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user