btShapeHull implemented by John McCutchan. More...
#include <btShapeHull.h>
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 |
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.
| btShapeHull::btShapeHull | ( | const btConvexShape * | shape | ) |
| 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::numTriangles | ( | ) | const |
| int btShapeHull::numVertices | ( | ) | const |
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.
btAlignedObjectArray<btVector3> btShapeHull::m_vertices [protected] |
Definition at line 32 of file btShapeHull.h.