BEPUutilities2.ConvexHullHelper.GetConvexHull C# (CSharp) Метод

GetConvexHull() публичный статический Метод

Identifies the points on the surface of hull.
public static GetConvexHull ( IList points, IList outputTriangleIndices, IList outputSurfacePoints ) : void
points IList List of points in the set.
outputTriangleIndices IList List of indices into the input point set composing the triangulated surface of the convex hull. /// Each group of 3 indices represents a triangle on the surface of the hull.
outputSurfacePoints IList Unique points on the surface of the convex hull.
Результат void
        public static void GetConvexHull(IList<Vector3> points, IList<int> outputTriangleIndices, IList<Vector3> outputSurfacePoints)
        {
            var rawPoints = new QuickList<Vector3>(BufferPools<Vector3>.Locking, BufferPool.GetPoolIndex(points.Count));
            var rawIndices = new QuickList<int>(BufferPools<int>.Locking, BufferPool.GetPoolIndex(points.Count * 3));
            rawPoints.AddRange(points);
            GetConvexHull(ref rawPoints, ref rawIndices, outputSurfacePoints);
            rawPoints.Dispose();
            for (int i = 0; i < rawIndices.Count; i++)
            {
                outputTriangleIndices.Add(rawIndices[i]);
            }
            rawIndices.Dispose();
        }

Same methods

ConvexHullHelper::GetConvexHull ( IList points, IList outputSurfacePoints ) : void
ConvexHullHelper::GetConvexHull ( IList points, IList outputTriangleIndices ) : void
ConvexHullHelper::GetConvexHull ( QuickList &points, IList outputSurfacePoints ) : void
ConvexHullHelper::GetConvexHull ( QuickList &points, QuickList &outputTriangleIndices ) : void
ConvexHullHelper::GetConvexHull ( QuickList &points, QuickList &outputTriangleIndices, IList outputSurfacePoints ) : void