Open Dynamics Engine
Classes | Public Member Functions | Public Attributes | Private Member Functions | List of all members
dxConvex Struct Reference
Inheritance diagram for dxConvex:
dxGeom dBase

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. More...
 
- Public Member Functions inherited from dxGeom
 dxGeom (dSpaceID _space, int is_placeable)
 
void updateZeroSizedFlag (bool is_zero_sized)
 
unsigned getParentSpaceTLSKind () const
 
void computePosr ()
 
void recomputePosr ()
 
bool checkControlValueSizeValidity (void *dataValue, int *dataSize, int iRequiresSize)
 
virtual bool controlGeometry (int controlClass, int controlCode, void *dataValue, int *dataSize)
 
virtual int AABBTest (dxGeom *o, dReal aabb[6])
 
void recomputeAABB ()
 
void spaceAdd (dxGeom **first_ptr)
 
void spaceRemove ()
 
void bodyAdd (dxBody *b)
 
void bodyRemove ()
 
- Public Member Functions inherited from dBase
void * operator new (size_t size)
 
void * operator new (size_t, void *p)
 
void operator delete (void *ptr, size_t size)
 
void * operator new[] (size_t size)
 
void operator delete[] (void *ptr, size_t size)
 

Public Attributes

dReal * planes
 
dReal * points
 
unsigned int * polygons
 
unsigned int planecount
 
unsigned int pointcount
 
unsigned int edgecount
 
dReal saabb [6]
 
edgeedges
 
- Public Attributes inherited from dxGeom
int type
 
int gflags
 
void * data
 
dBodyID body
 
dxGeombody_next
 
dxPosRfinal_posr
 
dxPosRoffset_posr
 
dxGeomnext
 
dxGeom ** tome
 
dxGeomnext_ex
 
dxGeom ** tome_ex
 
dxSpaceparent_space
 
dReal aabb [6]
 
unsigned long category_bits
 
unsigned long collide_bits
 

Private Member Functions

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

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.

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

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

dReal dxConvex::saabb[6]

Static AABB


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