Open Dynamics Engine
|
Classes | |
struct | edge |
Public Member Functions | |
dxConvex (dSpaceID space, dReal *planes, unsigned int planecount, dReal *points, unsigned int pointcount, unsigned int *polygons) | |
void | computeAABB () |
unsigned int | SupportIndex (dVector3 dir) |
A Support mapping function for convex shapes. | |
Public Attributes | |
dReal * | planes |
dReal * | points |
unsigned int * | polygons |
unsigned int | planecount |
unsigned int | pointcount |
unsigned int | edgecount |
dReal | saabb [6] |
edge * | edges |
Private Member Functions | |
void | FillEdges () |
Fills the edges dynamic array based on points and polygons. |
void dxConvex::FillEdges | ( | ) | [private] |
Fills the edges dynamic array based on points and polygons.
Populates the edges set, should be called only once whenever the polygon array gets updated.
References edgecount, and planecount.
unsigned int dxConvex::SupportIndex | ( | dVector3 | dir | ) | [inline] |
A Support mapping function for convex shapes.
dir | [IN] direction to find the Support Point for |
References pointcount, and points.
unsigned int dxConvex::edgecount |
Amount of edges in convex
Referenced by FillEdges().
unsigned int dxConvex::planecount |
An array of indices to the points of each polygon, it should be the number of vertices followed by that amount of indices to "points" in counter clockwise order Amount of planes in planes
Referenced by FillEdges().
dReal* dxConvex::planes |
An array of planes in the form: normal X, normal Y, normal Z,Distance
unsigned int dxConvex::pointcount |
Amount of points in points
Referenced by SupportIndex().
dReal* dxConvex::points |
An array of points X,Y,Z
Referenced by SupportIndex().
dReal dxConvex::saabb[6] |
Static AABB