From f7b4cc602b9a646fbc66f3f17d6bb9c20efc3ead Mon Sep 17 00:00:00 2001
From: jaseg Del.» function CleanPolygons(const Polys: TPaths; Distance: double = 1.415): TPaths; C++ » void CleanPolygons(const Paths &in_polys, Paths &out_polys, double distance = 1.415); C++ » void CleanPolygons(Paths &polys, double distance = 1.415); C# » public static Paths CleanPolygons(Paths polys, double distance = 1.415); Removes vertices:
+
+
+
+
+
+ Home
+
+ ClipperLib
+
+
+
CleanPolygons
+
+
+
+
+
+
+
+
Vertices are semi-adjacent when they are separated by a single (out-lying) vertex.
The distance parameter's default value is approximately √2 so that a vertex will be removed when adjacent or semi-adjacent vertices having their corresponding X and Y coordinates differing by no more than 1 unit. (If the egdes are semi-adjacent the out-lying vertex will be removed too.)
C++ only: This function is overloaded. In the first definition, the in_polys and out_polys parameters can reference the same Paths object though in that case the calling code might be clearer if the second definition (accepting a single Paths parameter) is used.
CleanPolygon, SimplifyPolygons
+ +
Copyright ©2010-2014 Angus Johnson - Clipper 6.2.1 - Help file built on 1-November-2014