Public Member Functions | Static Protected Member Functions | Protected Attributes
btShapeHull Class Reference

btShapeHull implemented by John McCutchan. More...

#include <btShapeHull.h>

List of all members.

Public Member Functions

 btShapeHull (const btConvexShape *shape)
bool buildHull (btScalar margin)
const unsigned int * getIndexPointer () const
const btVector3 * getVertexPointer () const
int numIndices () const
int numTriangles () const
int numVertices () const
 ~btShapeHull ()

Static Protected Member Functions

static btVector3 * getUnitSpherePoints ()

Protected Attributes

btAlignedObjectArray< unsigned
int > 
m_indices
unsigned int m_numIndices
const btConvexShape * m_shape
btAlignedObjectArray< btVector3 > m_vertices

Detailed Description

btShapeHull implemented by John McCutchan.

The btShapeHull class takes a btConvexShape, builds a simplified convex hull using btConvexHull and provides triangle indices and vertices. It can be useful for to simplify a complex convex object and for visualization of a non-polyhedral convex object. It approximates the convex hull using the supporting vertex of 42 directions.

Definition at line 28 of file btShapeHull.h.


Constructor & Destructor Documentation

btShapeHull::btShapeHull ( const btConvexShape *  shape)

Member Function Documentation

bool btShapeHull::buildHull ( btScalar  margin)
const unsigned int* btShapeHull::getIndexPointer ( ) const [inline]

Definition at line 53 of file btShapeHull.h.

static btVector3* btShapeHull::getUnitSpherePoints ( ) [static, protected]
const btVector3* btShapeHull::getVertexPointer ( ) const [inline]

Definition at line 49 of file btShapeHull.h.

int btShapeHull::numIndices ( ) const
int btShapeHull::numVertices ( ) const

Member Data Documentation

btAlignedObjectArray<unsigned int> btShapeHull::m_indices [protected]

Definition at line 33 of file btShapeHull.h.

unsigned int btShapeHull::m_numIndices [protected]

Definition at line 34 of file btShapeHull.h.

const btConvexShape* btShapeHull::m_shape [protected]

Definition at line 35 of file btShapeHull.h.

Definition at line 32 of file btShapeHull.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


bullet
Author(s): Erwin Coumans, ROS package maintained by Tully Foote
autogenerated on Wed Oct 31 2012 07:54:32