SimplifyPolygon

Del.» function SimplifyPolygon(const Poly: TPolygon; FillType: TPolyFillType = pftEvenOdd): TPolygons;

C++ » void SimplifyPolygon(const Polygon &in_poly, Polygons &out_polys,
        PolyFillType fillType = pftEvenOdd);

C#  » public static Polygons SimplifyPolygon(Polygon poly,
        PolyFillType fillType = PolyFillType.pftEvenOdd);


Removes self-intersections from the supplied polygon (by performing a boolean union operation using the nominated PolyFillType).
Polygons with non-contiguous duplicate vertices (ie 'touching') will be split into two polygons.

C++ only: The in_polys and out_polys parameters can reference the same object.


See Also

Clipper.ForceSimple, CleanPolygon, PolyFillType, Polygon