#4328 Stimulation wells in 3D-view: Render well head using pipe color

If well head is a real connection, render as normal connection. If dummy connection, render as pipe color
This commit is contained in:
Magne Sjaastad
2019-04-26 13:30:29 +02:00
parent 11e91f5d1c
commit 8ce9f63487
4 changed files with 32 additions and 16 deletions

View File

@@ -287,7 +287,7 @@ void RivSimWellPipesPartMgr::buildWellPipeParts(const caf::DisplayCoordTransform
for (const auto& intersectionInfo : wellPathCellIntersections)
{
size_t globalCellIndex = intersectionInfo.globCellIndex;
const RigWellResultPoint* wResCell = wResFrame.findResultCell(0, globalCellIndex);
const RigWellResultPoint* wResCell = wResFrame.findResultCellWellHeadIncluded(0, globalCellIndex);
if (!wResCell || !wResCell->isValid())
{
@@ -415,7 +415,7 @@ void RivSimWellPipesPartMgr::updatePipeResultColor(size_t frameIndex)
if (cellIds[wcIdx].isCell())
{
wResCell = wResFrame.findResultCell(cellIds[wcIdx].m_gridIndex, cellIds[wcIdx].m_gridCellIndex);
wResCell = wResFrame.findResultCellWellHeadExcluded(cellIds[wcIdx].m_gridIndex, cellIds[wcIdx].m_gridCellIndex);
}
if (wResCell)