private IList <Triangle> InitializeTrianglesFromTexture()
    {
        IList <Triangle> triangles;
        Texture2D        texture = textures[(int)selected];

        mat.SetTexture("_MainTex", texture);
        ImageConverter        converter = new ImageConverter(texture, resolution, scale);
        ICollection <Vector3> points    = converter.CreatePointsfromImage(detectEdges, edgeInc);

        Vector3[] pointsArr = new Vector3[points.Count];
        points.CopyTo(pointsArr, 0);
        triangles = delaunay.Triangulate(pointsArr);
        triangles = converter.CleanTriangleList(triangles);
        return(triangles);
    }