mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-04 13:16:56 -06:00
#1161 and #1188 Fixed problems with last MSW segments. Two errors: missing last segment ID, and missing drawing the last pipe segment.
This commit is contained in:
1 parent
94a90c8796
commit
76bc449d1f
3 files changed
+54
-39
No files matched your search
@@ -380,6 +380,11 @@ void RigSimulationWellCenterLineCalculator::calculateWellPipeCenterlineFromWellF
|
||||
cvf::Vec3d centerLastCell = prevCell.center();
|
||||
finishPipeCenterLine(pipeBranchesCLCoords, centerLastCell);
|
||||
}
|
||||
else if (prevWellResPoint && prevWellResPoint->isPointValid())
|
||||
{
|
||||
// Continue the line with the same point, just to keep the last Cell ID
|
||||
pipeBranchesCLCoords.back().push_back(prevWellResPoint->m_bottomPosition);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Remove the ID that is superfluous since we will not add an ending point
|
||||
|
||||
Reference in new issue
Block a user