#7811 Modeled Well Path : Optionally use refpoint from top level well path

This commit is contained in:
Magne Sjaastad
2021-06-28 11:18:04 +02:00
parent 62d67a52c7
commit d818a01b79
8 changed files with 83 additions and 9 deletions

View File

@@ -92,6 +92,7 @@ RimWellPath* RicNewWellPathLateralAtDepthFeature::createLateralAtMeasuredDepth(
if ( project && wellPathColl )
{
auto newModeledWellPath = new RimModeledWellPath();
newModeledWellPath->geometryDefinition()->enableReferencePointFromTopLevelWell( true );
if ( parentWellPath->wellPathGeometry() && parentWellPath->wellPathGeometry()->measuredDepths().size() > 2 )
{
@@ -100,7 +101,6 @@ RimWellPath* RicNewWellPathLateralAtDepthFeature::createLateralAtMeasuredDepth(
->clippedPointSubset( parentWellPath->wellPathGeometry()->measuredDepths().front(), parentWellMD );
newModeledWellPath->geometryDefinition()->setMdAtFirstTarget( measuredDepths.back() );
// newModeledWellPath->geometryDefinition()->setReferencePointXyz( pointVector.back() );
newModeledWellPath->geometryDefinition()->setFixedWellPathPoints( pointVector );
newModeledWellPath->geometryDefinition()->setFixedMeasuredDepths( measuredDepths );
}