Ejemplo n.º 1
0
        private IConvexHull FindConvexHull(IList <PlanePoint> points)
        {
            int dim = points[0].Dim;

            if (dim == 2)
            {
                return(_algorithm2d.FindConvexHull(points));
            }
            if (points.Count == dim + 1)
            {
                return(_algorithmSimplex.FindConvexHull(points));
            }

            return(FindConvexHullNd(points));
        }