21#define NUM_UNITSPHERE_POINTS 42
22#define NUM_UNITSPHERE_POINTS_HIGHRES 256
52 for (
int s = 0; s <
numPDA; s++)
64#ifdef BT_USE_DOUBLE_PRECISION
#define MAX_PREFERRED_PENETRATION_DIRECTIONS
const T & btMax(const T &a, const T &b)
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
#define NUM_UNITSPHERE_POINTS_HIGHRES
#define NUM_UNITSPHERE_POINTS
The HullLibrary class can create a convex hull from a collection of vertices, using the ComputeHull m...
int size() const
return the number of elements in the array
void resize(int newsize, const T &fillData=T())
void clear()
clear the array, deallocated memory. Generally it is better to use array.resize(0),...
The btConvexShape is an abstract shape interface, implemented by all convex shapes such as btBoxShape...
virtual btVector3 localGetSupportingVertex(const btVector3 &vec) const =0
virtual int getNumPreferredPenetrationDirections() const =0
virtual void getPreferredPenetrationDirection(int index, btVector3 &penetrationVector) const =0
btShapeHull(const btConvexShape *shape)
btAlignedObjectArray< btVector3 > m_vertices
static btVector3 * getUnitSpherePoints(int highres=0)
unsigned int m_numIndices
btAlignedObjectArray< unsigned int > m_indices
const btConvexShape * m_shape
bool buildHull(btScalar margin, int highres=0)
btVector3 can be used to represent 3D points and vectors.