Exemplo n.º 1
0
        private static Path VolumeToPath(IVolume volume, bool reverse = false)
        {
            Path output = new Path();

            Vector2[] points         = volume.AllPointsV2();
            int       numberOfPoints = points.Length;

            for (int p = 0; p < numberOfPoints; p++)
            {
                int index = reverse ? numberOfPoints - 1 - p : p;
                output.Add(Vector2ToIntpoint(points[index]));
            }
            return(output);
        }