Bullet Collision Detection & Physics Library
Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
btShapeHull Class Reference

btShapeHull implemented by John McCutchan. More...

#include <btShapeHull.h>

Collaboration diagram for btShapeHull:
Collaboration graph

Public Member Functions

 btShapeHull (const btConvexShape *shape)
 ~btShapeHull ()
bool buildHull (btScalar margin, int highres=0)
int numTriangles () const
int numVertices () const
int numIndices () const
const btVector3getVertexPointer () const
const unsigned int * getIndexPointer () const

Static Protected Member Functions

static btVector3getUnitSpherePoints (int highres=0)

Protected Attributes

btAlignedObjectArray< btVector3m_vertices
btAlignedObjectArray< unsigned int > m_indices
unsigned int m_numIndices
const btConvexShapem_shape

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)

Definition at line 26 of file btShapeHull.cpp.

btShapeHull::~btShapeHull ( )

Definition at line 34 of file btShapeHull.cpp.

Member Function Documentation

bool btShapeHull::buildHull ( btScalar  margin,
int  highres = 0 

Definition at line 41 of file btShapeHull.cpp.

const unsigned int* btShapeHull::getIndexPointer ( ) const

Definition at line 55 of file btShapeHull.h.

btVector3 * btShapeHull::getUnitSpherePoints ( int  highres = 0)

Definition at line 123 of file btShapeHull.cpp.

const btVector3* btShapeHull::getVertexPointer ( ) const

Definition at line 51 of file btShapeHull.h.

int btShapeHull::numIndices ( ) const

Definition at line 117 of file btShapeHull.cpp.

int btShapeHull::numTriangles ( ) const

Definition at line 105 of file btShapeHull.cpp.

int btShapeHull::numVertices ( ) const

Definition at line 111 of file btShapeHull.cpp.

Member Data Documentation

btAlignedObjectArray<unsigned int> btShapeHull::m_indices

Definition at line 33 of file btShapeHull.h.

unsigned int btShapeHull::m_numIndices

Definition at line 34 of file btShapeHull.h.

const btConvexShape* btShapeHull::m_shape

Definition at line 35 of file btShapeHull.h.

btAlignedObjectArray<btVector3> btShapeHull::m_vertices

Definition at line 32 of file btShapeHull.h.

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