BEPUphysics.CollisionShapes.ConvexShapes.ConvexHullShape.ComputeVolumeDistribution C# (CSharp) Метод

ComputeVolumeDistribution() публичный Метод

Computes the volume distribution of the shape as well as its volume. The volume distribution can be used to compute inertia tensors when paired with mass and other tuning factors.
public ComputeVolumeDistribution ( float &volume ) : Matrix3x3
volume float Volume of the shape.
Результат BEPUutilities.Matrix3x3
        public override Matrix3x3 ComputeVolumeDistribution(out float volume)
        {
            var surfaceTriangles = CommonResources.GetIntList();
            var surfaceVertices = CommonResources.GetVectorList();
            ComputeCenter(out volume, surfaceTriangles, surfaceVertices);
            Matrix3x3 toReturn = ComputeVolumeDistribution(volume, surfaceTriangles);
            CommonResources.GiveBack(surfaceTriangles);
            CommonResources.GiveBack(surfaceVertices);
            return toReturn;
        }

Same methods

ConvexHullShape::ComputeVolumeDistribution ( float volume, IList localSurfaceTriangles ) : Matrix3x3