mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1520 Show completion type cells as transparent
This commit is contained in:
@@ -262,6 +262,18 @@ void RivGridPartMgr::updateCellResultColor(size_t timeStepIndex, RimEclipseCellC
|
||||
|
||||
texturer.createTextureCoords(m_surfaceFacesTextureCoords.p());
|
||||
|
||||
if (cellResultColors->isCompletionTypeSelected())
|
||||
{
|
||||
cvf::Vec2fArray& surfaceCoords = *m_surfaceFacesTextureCoords.p();
|
||||
for (cvf::Vec2f& vec : surfaceCoords)
|
||||
{
|
||||
{
|
||||
vec[1] = 0.5;
|
||||
}
|
||||
}
|
||||
m_opacityLevel = 0.5;
|
||||
}
|
||||
|
||||
const cvf::ScalarMapper* mapper = cellResultColors->legendConfig()->scalarMapper();
|
||||
RivScalarMapperUtils::applyTextureResultsToPart(m_surfaceFaces.p(),
|
||||
m_surfaceFacesTextureCoords.p(),
|
||||
|
||||
Reference in New Issue
Block a user