Bullet Collision Detection & Physics Library
|
btShapeHull implemented by John McCutchan. More...
#include <btShapeHull.h>
Public Member Functions | |
BT_DECLARE_ALIGNED_ALLOCATOR () | |
btShapeHull (const btConvexShape *shape) | |
~btShapeHull () | |
bool | buildHull (btScalar margin, int highres=0) |
int | numTriangles () const |
int | numVertices () const |
int | numIndices () const |
const btVector3 * | getVertexPointer () const |
const unsigned int * | getIndexPointer () const |
Static Protected Member Functions | |
static btVector3 * | getUnitSpherePoints (int highres=0) |
Protected Attributes | |
btAlignedObjectArray< btVector3 > | m_vertices |
btAlignedObjectArray< unsigned int > | m_indices |
unsigned int | m_numIndices |
const btConvexShape * | m_shape |
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 27 of file btShapeHull.h.
btShapeHull::btShapeHull | ( | const btConvexShape * | shape | ) |
Definition at line 24 of file btShapeHull.cpp.
btShapeHull::~btShapeHull | ( | ) |
Definition at line 32 of file btShapeHull.cpp.
btShapeHull::BT_DECLARE_ALIGNED_ALLOCATOR | ( | ) |
bool btShapeHull::buildHull | ( | btScalar | margin, |
int | highres = 0 |
||
) |
Definition at line 38 of file btShapeHull.cpp.
|
inline |
Definition at line 54 of file btShapeHull.h.
|
staticprotected |
Definition at line 113 of file btShapeHull.cpp.
|
inline |
Definition at line 50 of file btShapeHull.h.
int btShapeHull::numIndices | ( | ) | const |
Definition at line 108 of file btShapeHull.cpp.
int btShapeHull::numTriangles | ( | ) | const |
Definition at line 98 of file btShapeHull.cpp.
int btShapeHull::numVertices | ( | ) | const |
Definition at line 103 of file btShapeHull.cpp.
|
protected |
Definition at line 32 of file btShapeHull.h.
|
protected |
Definition at line 33 of file btShapeHull.h.
|
protected |
Definition at line 34 of file btShapeHull.h.
|
protected |
Definition at line 31 of file btShapeHull.h.