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

            return(list[0]);
        }
예제 #2
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]);
        }
예제 #3
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);
        }
예제 #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));
 }
예제 #5
0
 public static Vertices CreatePolygon(uint[] data, int width, bool holeDetection)
 {
     return(TextureConverter.DetectVertices(data, width, holeDetection));
 }
예제 #6
0
 public static Vertices CreatePolygon(uint[] data, int width)
 {
     return(TextureConverter.DetectVertices(data, width));
 }