CleanPolygon

Del.» function CleanPolygon(const Poly: TPolygon; Distance: double = 1.415): TPolygon;

C++ » void CleanPolygon(Polygon &in_poly, Polygon &out_poly, double distance = 1.415);

C#  » public static Polygon CleanPolygon(Polygon poly, double distance = 1.415);


Removes vertices:

Vertices are semi-adjacent when they are separated by a single (out-lying) vertex. The distance parameter's default value approximates √2 so that adjacent or semi-adjacent vertices having their corresponding X and Y coordinates differing by no more than 1 unit will precipitate the removal of one the vertices (together with the out-lying vertex if they are semi-adjacent).

(C++ only: The in_poly and out_poly parameters can reference the same object.)

   

See Also

CleanPolygons, SimplifyPolygon, Polygon