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

This commit is contained in:
Magne Sjaastad committed 2021-06-28 14:44:45 +02:00
1 parent 62d67a52c7
commit d818a01b79
8 files changed
+83 -9

No files matched your search

@@ -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 );
}