#945 Removed flag as watertight flag was always set true

This commit is contained in:
Magne Sjaastad
2016-11-18 14:05:50 +01:00
parent 8344617ba9
commit e89b73d64c
7 changed files with 20 additions and 20 deletions

View File

@@ -1099,28 +1099,28 @@ void RivReservoirViewPartMgr::appendFaultLabelsDynamicGeometryPartsToModel(cvf::
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RivReservoirViewPartMgr::forceWatertightGeometryForType(RivCellSetEnum geometryType, bool forceWatertightGeometry)
void RivReservoirViewPartMgr::forceWatertightGeometryOnForType(RivCellSetEnum geometryType)
{
if (geometryType == PROPERTY_FILTERED)
{
for (size_t i = 0; i < m_propFilteredGeometryFrames.size(); ++i)
{
if (m_propFilteredGeometryFrames[i].p()) m_propFilteredGeometryFrames[i]->forceWatertightGeometryOn(forceWatertightGeometry);
if (m_propFilteredGeometryFrames[i].p()) m_propFilteredGeometryFrames[i]->forceWatertightGeometryOn();
}
}
else if (geometryType == PROPERTY_FILTERED_WELL_CELLS)
{
for (size_t i = 0; i < m_propFilteredWellGeometryFrames.size(); ++i)
{
if (m_propFilteredWellGeometryFrames[i].p()) m_propFilteredWellGeometryFrames[i]->forceWatertightGeometryOn(forceWatertightGeometry);
if (m_propFilteredWellGeometryFrames[i].p()) m_propFilteredWellGeometryFrames[i]->forceWatertightGeometryOn();
}
}
else
{
if (forceWatertightGeometry && m_geometriesNeedsRegen[geometryType])
if (m_geometriesNeedsRegen[geometryType])
{
createGeometry(geometryType);
}
m_geometries[geometryType].forceWatertightGeometryOn(forceWatertightGeometry);
m_geometries[geometryType].forceWatertightGeometryOn();
}
}