C# 클래스 BEPUphysics.CollisionShapes.ConvexShapes.ConvexHullShape

Convex wrapping around a point set.
상속: ConvexShape
파일 보기 프로젝트 열기: Indiefreaks/igf 1 사용 예제들

공개 메소드들

메소드 설명
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