C# Класс BEPUphysics.CollisionShapes.ConvexShapes.ConvexHullShape

Convex wrapping around a point set.
Наследование: ConvexShape
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ComputeCenter ( ) : Vector3

Computes the center of the shape. This can be considered its center of mass.

ComputeCenter ( IList vertices ) : Vector3

Computes the center of a convex hull defined by the point set.

ComputeCenter ( IList vertices, IList outputLocalSurfaceVertices ) : Vector3

Computes the center and surface triangles of a convex hull defined by a point set.

ComputeCenter ( IList vertices, IList outputSurfaceTriangles, IList outputLocalSurfaceVertices ) : Vector3

Computes the center and surface triangles of a convex hull defined by a point set.

ComputeCenter ( IList vertices, float &volume ) : Vector3

Computes the center and volume of a convex hull defined by a pointset.

ComputeCenter ( IList vertices, float &volume, IList outputSurfaceTriangles, IList outputLocalSurfaceVertices ) : Vector3

Computes the center, volume, and surface triangles of a convex hull defined by a point set.

ComputeCenter ( float &volume ) : Vector3

Computes the center of the shape. This can be considered its center of mass. This calculation is often associated with the volume calculation, which is given by this method as well.

ComputeCenter ( float &volume, IList outputSurfaceTriangles, IList outputLocalSurfaceVertices ) : Vector3

Computes the center, volume, and surface triangles of the convex hull shape.

ComputeMaximumRadius ( ) : float

Computes the maximum radius of the shape. This is often larger than the actual maximum radius; it is simply an approximation that avoids underestimating.

ComputeMinimumRadius ( ) : float

Computes the minimum radius of the shape. This is often smaller than the actual minimum radius; it is simply an approximation that avoids overestimating.

ComputeVolume ( ) : float

Computes the volume of the shape.

ComputeVolumeDistribution ( float &volume ) : Matrix3x3

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.

ComputeVolumeDistribution ( float volume, IList localSurfaceTriangles ) : Matrix3x3

Computes the volume distribution of the convex hull, its volume, and its surface triangles.

ConvexHullShape ( IList vertices ) : System

Constructs a new convex hull shape. The point set will be recentered on the local origin. If that offset is needed, use the other constructor which outputs the computed center.

ConvexHullShape ( IList vertices, Vector3 &center ) : System

Constructs a new convex hull shape. The point set will be recentered on the local origin.

ConvexHullShape ( IList vertices, Vector3 &center, IList outputHullTriangleIndices, IList outputUniqueSurfaceVertices ) : System

Constructs a new convex hull shape. The point set will be recentered on the local origin.

GetBoundingBox ( RigidTransform &shapeTransform, BoundingBox &boundingBox ) : void

Gets the bounding box of the shape given a transform.

GetCollidableInstance ( ) : EntityCollidable

Retrieves an instance of an EntityCollidable that uses this EntityShape. Mainly used by compound bodies.

GetLocalExtremePointWithoutMargin ( Vector3 &direction, Vector3 &extremePoint ) : void

Описание методов

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

Computes the center of the shape. This can be considered its center of mass.
public ComputeCenter ( ) : Vector3
Результат Vector3

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

Computes the center of a convex hull defined by the point set.
public static ComputeCenter ( IList vertices ) : Vector3
vertices IList Point set defining the convex hull.
Результат Vector3

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

Computes the center and surface triangles of a convex hull defined by a point set.
public static ComputeCenter ( IList vertices, IList outputLocalSurfaceVertices ) : Vector3
vertices IList Point set defining the convex hull.
outputLocalSurfaceVertices IList Local positions of vertices on the convex hull.
Результат Vector3

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

Computes the center and surface triangles of a convex hull defined by a point set.
public static ComputeCenter ( IList vertices, IList outputSurfaceTriangles, IList outputLocalSurfaceVertices ) : Vector3
vertices IList Point set defining the convex hull.
outputSurfaceTriangles IList Indices of surface triangles of the convex hull.
outputLocalSurfaceVertices IList Local positions of vertices on the convex hull.
Результат Vector3

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

Computes the center and volume of a convex hull defined by a pointset.
public static ComputeCenter ( IList vertices, float &volume ) : Vector3
vertices IList Point set defining the convex hull.
volume float Volume of the convex hull.
Результат Vector3

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

Computes the center, volume, and surface triangles of a convex hull defined by a point set.
public static ComputeCenter ( IList vertices, float &volume, IList outputSurfaceTriangles, IList outputLocalSurfaceVertices ) : Vector3
vertices IList Point set defining the convex hull.
volume float Volume of the convex hull.
outputSurfaceTriangles IList Indices of surface triangles of the convex hull.
outputLocalSurfaceVertices IList Local positions of vertices on the convex hull.
Результат Vector3

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

Computes the center of the shape. This can be considered its center of mass. This calculation is often associated with the volume calculation, which is given by this method as well.
public ComputeCenter ( float &volume ) : Vector3
volume float Volume of the shape.
Результат Vector3

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

Computes the center, volume, and surface triangles of the convex hull shape.
public ComputeCenter ( float &volume, IList outputSurfaceTriangles, IList outputLocalSurfaceVertices ) : Vector3
volume float Volume of the hull.
outputSurfaceTriangles IList Surface triangles of the hull.
outputLocalSurfaceVertices IList Surface vertices recentered on the center of volume.
Результат Vector3

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

Computes the maximum radius of the shape. This is often larger than the actual maximum radius; it is simply an approximation that avoids underestimating.
public ComputeMaximumRadius ( ) : float
Результат float

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

Computes the minimum radius of the shape. This is often smaller than the actual minimum radius; it is simply an approximation that avoids overestimating.
public ComputeMinimumRadius ( ) : float
Результат float

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

Computes the volume of the shape.
public ComputeVolume ( ) : float
Результат float

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

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

Computes the volume distribution of the convex hull, its volume, and its surface triangles.
public ComputeVolumeDistribution ( float volume, IList localSurfaceTriangles ) : Matrix3x3
volume float Volume of the convex hull.
localSurfaceTriangles IList Surface triangles of the convex hull.
Результат BEPUutilities.Matrix3x3

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

Constructs a new convex hull shape. The point set will be recentered on the local origin. If that offset is needed, use the other constructor which outputs the computed center.
Thrown when the point set is empty.
public ConvexHullShape ( IList vertices ) : System
vertices IList Point set to use to construct the convex hull.
Результат System

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

Constructs a new convex hull shape. The point set will be recentered on the local origin.
Thrown when the point set is empty.
public ConvexHullShape ( IList vertices, Vector3 &center ) : System
vertices IList Point set to use to construct the convex hull.
center Vector3 Computed center of the convex hull shape prior to recentering.
Результат System

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

Constructs a new convex hull shape. The point set will be recentered on the local origin.
Thrown when the point set is empty.
public ConvexHullShape ( IList vertices, Vector3 &center, IList outputHullTriangleIndices, IList outputUniqueSurfaceVertices ) : System
vertices IList Point set to use to construct the convex hull.
center Vector3 Computed center of the convex hull shape prior to recentering.
outputHullTriangleIndices IList Triangle indices computed on the surface of the point set.
outputUniqueSurfaceVertices IList Unique vertices on the surface of the convex hull.
Результат System

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

Gets the bounding box of the shape given a transform.
public GetBoundingBox ( RigidTransform &shapeTransform, BoundingBox &boundingBox ) : void
shapeTransform BEPUutilities.RigidTransform Transform to use.
boundingBox BoundingBox Bounding box of the transformed shape.
Результат void

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

Retrieves an instance of an EntityCollidable that uses this EntityShape. Mainly used by compound bodies.
public GetCollidableInstance ( ) : EntityCollidable
Результат BEPUphysics.BroadPhaseEntries.MobileCollidables.EntityCollidable

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

public GetLocalExtremePointWithoutMargin ( Vector3 &direction, Vector3 &extremePoint ) : void
direction Vector3
extremePoint Vector3
Результат void