#3422 Handle straight well paths better

This commit is contained in:
Jacob Støren
2018-09-27 14:19:10 +02:00
parent 70a7b3ae5c
commit 71c36208c3
2 changed files with 8 additions and 2 deletions

View File

@@ -395,6 +395,9 @@ std::vector<cvf::Vec3d> RimWellPathGeometryDef::lineArcEndpoints() const
RimWellPathTarget* target1 = activeWellPathTargets[tIdx];
RimWellPathTarget* target2 = activeWellPathTargets[tIdx+1];
// Ignore targets in the same place
if ((target1->targetPointXYZ() - target2->targetPointXYZ()).length() < 1e-6) continue;
target1->flagRadius2AsIncorrect(false, 0);
target2->flagRadius1AsIncorrect(false, 0);