Ejemplo n.º 1
0
        public static Plane[] GetConvexPolyhedronPlanesFromVertices(IList <Vector3F> vertices, double epsilon)
        {
            Vector3[] verticesD = new Vector3[vertices.Count];
            for (int n = 0; n < verticesD.Length; n++)
            {
                verticesD[n] = vertices[n].ToVector3();
            }
            HullInternal hull = new HullInternal(verticesD, epsilon);

            return(hull.Calculate());
        }
Ejemplo n.º 2
0
        public static Plane[] GetConvexPolyhedronPlanesFromVertices(IList <Vector3> vertices, double epsilon)
        {
            HullInternal hull = new HullInternal(vertices, epsilon);

            return(hull.Calculate());
        }