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

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

Identifies the points on the surface of hull.
public static GetConvexHull ( QuickList &points, QuickList &outputTriangleIndices, IList outputSurfacePoints ) : void
points QuickList List of points in the set.
outputTriangleIndices QuickList 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(ref QuickList<Vector3> points, ref QuickList<int> outputTriangleIndices, IList<Vector3> outputSurfacePoints)
        {
            GetConvexHull(ref points, ref outputTriangleIndices);

            var alreadyContainedIndices = new QuickSet<int>(BufferPools<int>.Locking, BufferPools<int>.Locking);

            for (int i = outputTriangleIndices.Count - 1; i >= 0; i--)
            {
                int index = outputTriangleIndices[i];
                if (alreadyContainedIndices.Add(index))
                {
                    outputSurfacePoints.Add(points[index]);
                }
            }
            alreadyContainedIndices.Dispose();
        }

Same methods

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