#2684 Well CF Visualization: Option to turn off CF visualization on closed connections

This commit is contained in:
Magne Sjaastad
2018-04-19 22:28:22 +02:00
parent e6781e2de4
commit 9e40ba39c8
5 changed files with 49 additions and 39 deletions

View File

@@ -94,6 +94,17 @@ void RivWellConnectionFactorPartMgr::appendDynamicGeometryPartsToModel(cvf::Mode
std::vector<CompletionVizData> completionVizDataItems;
for (const auto& cell : conn)
{
if (!m_virtualPerforationResult->showConnectionFactorsOnClosedConnections())
{
for (const auto& completion : cell.second)
{
if (completion.connectionState() == SHUT)
{
continue;
}
}
}
size_t gridIndex = cell.first.globalCellIndex();
const RigCell& rigCell = mainGrid->cell(gridIndex);