#1189 Do not consider well cells when controlling pipe/sphere visibilities

This commit is contained in:
Magne Sjaastad 2017-02-07 14:28:52 +01:00
parent ec7e892395
commit 0061067aa7
2 changed files with 11 additions and 5 deletions

View File

@ -166,6 +166,17 @@ bool RimEclipseWell::intersectsVisibleCells(size_t frameIndex) const
for (const RivCellSetEnum& visGridPart : visGridParts) for (const RivCellSetEnum& visGridPart : visGridParts)
{ {
if ( visGridPart == ALL_WELL_CELLS
|| visGridPart == VISIBLE_WELL_CELLS
|| visGridPart == VISIBLE_WELL_FENCE_CELLS
|| visGridPart == VISIBLE_WELL_CELLS_OUTSIDE_RANGE_FILTER
|| visGridPart == VISIBLE_WELL_FENCE_CELLS_OUTSIDE_RANGE_FILTER
)
{
// Exclude all cells related to well cells
continue;
}
// First check the wellhead: // First check the wellhead:
size_t gridIndex = wrsf.m_wellHead.m_gridIndex; size_t gridIndex = wrsf.m_wellHead.m_gridIndex;

View File

@ -219,11 +219,6 @@ RimEclipseWellCollection::~RimEclipseWellCollection()
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
void RimEclipseWellCollection::setShowWellCellsState(bool enable) void RimEclipseWellCollection::setShowWellCellsState(bool enable)
{ {
if (enable)
{
showWellsIntersectingVisibleCells = false;
}
for (RimEclipseWell* w : wells) for (RimEclipseWell* w : wells)
{ {
w->showWellCells = enable; w->showWellCells = enable;