public static Vertices DetectVertices(uint[] data, int width)
        {
            TextureConverter textureConverter = new TextureConverter(data, width);
            List <Vertices>  list             = textureConverter.DetectVertices();

            return(list[0]);
        }
        public static Vertices DetectVertices(uint[] data, int width, bool holeDetection)
        {
            TextureConverter textureConverter = new TextureConverter(data, width)
            {
                HoleDetection = holeDetection
            };
            List <Vertices> list = textureConverter.DetectVertices();

            return(list[0]);
        }
        public static List <Vertices> DetectVertices(uint[] data, int width, FP hullTolerance, byte alphaTolerance, bool multiPartDetection, bool holeDetection)
        {
            TextureConverter textureConverter = new TextureConverter(data, width)
            {
                HullTolerance      = hullTolerance,
                AlphaTolerance     = alphaTolerance,
                MultipartDetection = multiPartDetection,
                HoleDetection      = holeDetection
            };
            List <Vertices> list  = textureConverter.DetectVertices();
            List <Vertices> list2 = new List <Vertices>();

            for (int i = 0; i < list.Count; i++)
            {
                list2.Add(list[i]);
            }
            return(list2);
        }
Exemple #4
0
 public static List <Vertices> CreatePolygon(uint[] data, int width, FP hullTolerance, byte alphaTolerance, bool multiPartDetection, bool holeDetection)
 {
     return(TextureConverter.DetectVertices(data, width, hullTolerance, alphaTolerance, multiPartDetection, holeDetection));
 }
Exemple #5
0
 public static Vertices CreatePolygon(uint[] data, int width, bool holeDetection)
 {
     return(TextureConverter.DetectVertices(data, width, holeDetection));
 }
Exemple #6
0
 public static Vertices CreatePolygon(uint[] data, int width)
 {
     return(TextureConverter.DetectVertices(data, width));
 }