Exemplo n.º 1
0
        /// <summary>
        /// Cleans the paths.
        /// </summary>
        /// <returns>Returns a set of Paths where all points that are closer than tolerance are merged.</returns>
        /// <param name="paths">Paths.</param>


        public static Paths cleanPaths(Paths paths, int tolerance = 10)
        {
            return(Pather.cleanPaths(paths, tolerance));

            //return AXClipperLib.Clipper.CleanPolygons(paths, tolerance);
            //return paths;
//
//			// check the distance for between conscecutive IntPoints and if closer than tolerance replace the two points witha  median point.
//			Paths retPaths = new Paths();
//			foreach (Path path in paths)
//			{
//
//
//
//			}
//			return retPaths;
        }