mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Faults: Use "Cell behind" when showing grid cells
When any grid cell visualization we need to set the Faults face mode to the cell behind, to match the needs of the normal grid cell visualization. The face culling option is grayed out, but is not altered yet.
This commit is contained in:
@@ -653,8 +653,23 @@ caf::FaceCulling RivFaultPartMgr::faceCullingMode() const
|
||||
return caf::FC_BACK;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return caf::FC_NONE;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Always show cell behind fault if we are in grid visualization mode
|
||||
if (m_grid->mainGrid()->faceNormalsIsOutwards())
|
||||
{
|
||||
return caf::FC_BACK;
|
||||
}
|
||||
else
|
||||
{
|
||||
return caf::FC_FRONT;
|
||||
}
|
||||
}
|
||||
return caf::FC_NONE;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user