Add helper class for polygon and 2D binary image operations

This commit is contained in:
Magne Sjaastad
2025-01-16 17:00:41 +01:00
parent 62bb40c4f4
commit 882e64f790
12 changed files with 609 additions and 61 deletions

View File

@@ -23,6 +23,7 @@
#include "RigCellGeometryTools.h"
#include "RigContourMapGrid.h"
#include "RigContourMapProjection.h"
#include "RigPolygonTools.h"
#include "cvfGeometryUtils.h"
@@ -323,7 +324,7 @@ std::pair<std::vector<RigContourMapTrianglesGenerator::ContourPolygons>, std::ve
for ( RigContourPolygonsTools::ContourPolygon& polygon : contourPolygons[i] )
{
RigCellGeometryTools::simplifyPolygon( &polygon.vertices, simplifyEpsilon );
RigPolygonTools::simplifyPolygon( polygon.vertices, simplifyEpsilon );
}
}