#7045 Contour map : Disable clipping of smoothed contour lines

This commit is contained in:
Magne Sjaastad 2020-11-25 10:42:20 +01:00
parent b8dcabe023
commit f148554798

View File

@ -1151,13 +1151,18 @@ void RimContourMapProjection::generateContourPolygons()
} }
} }
// The clipping of contour polygons is intended to detect and fix a smoothed contour polygons
// crossing into an outer contour line. The current implementation has some side effects causing
// several contour lines to disappear. Disable this clipping for now
/*
if ( m_smoothContourLines() ) if ( m_smoothContourLines() )
{ {
for ( size_t i = 1; i < contourPolygons.size(); ++i ) for ( size_t i = 1; i < contourPolygons.size(); ++i )
{ {
clipContourPolygons( &contourPolygons[i], &contourPolygons[i - 1] ); clipContourPolygons(&contourPolygons[i], &contourPolygons[i - 1] );
} }
} }
*/
m_contourLevelCumulativeAreas.resize( contourPolygons.size(), 0.0 ); m_contourLevelCumulativeAreas.resize( contourPolygons.size(), 0.0 );
for ( int64_t i = (int64_t)contourPolygons.size() - 1; i >= 0; --i ) for ( int64_t i = (int64_t)contourPolygons.size() - 1; i >= 0; --i )