Open Dynamics Engine
Classes | Public Member Functions | Public Attributes | Private Member Functions

dxConvex Struct Reference

Inheritance diagram for dxConvex:
dxGeom dBase

List of all members.

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]
edgeedges

Private Member Functions

void FillEdges ()
 Fills the edges dynamic array based on points and polygons.

Member Function Documentation

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.

Parameters:
dir[IN] direction to find the Support Point for
Returns:
the index of the support vertex.

References pointcount, and points.


Member Data Documentation

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().

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().

An array of points X,Y,Z

Referenced by SupportIndex().

dReal dxConvex::saabb[6]

Static AABB


The documentation for this struct was generated from the following files: