22#define NUM_UNITSPHERE_POINTS 42
43 int numPDA =
m_shape->getNumPreferredPenetrationDirections();
46 for (
int i=0;i<numPDA;i++)
49 m_shape->getPreferredPenetrationDirection(i,norm);
51 numSampleDirections++;
58 for (i = 0; i < numSampleDirections; i++)
65 hd.
mVcount =
static_cast<unsigned int>(numSampleDirections);
67#ifdef BT_USE_DOUBLE_PRECISION
168 return sUnitSpherePoints;
#define MAX_PREFERRED_PENETRATION_DIRECTIONS
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
#define NUM_UNITSPHERE_POINTS
const btVector3 * mVertices
unsigned int mVertexStride
The HullLibrary class can create a convex hull from a collection of vertices, using the ComputeHull m...
HullError ReleaseResult(HullResult &result)
HullError CreateConvexHull(const HullDesc &desc, HullResult &result)
btAlignedObjectArray< btVector3 > m_OutputVertices
btAlignedObjectArray< unsigned int > m_Indices
unsigned int mNumOutputVertices
The btConvexShape is an abstract shape interface, implemented by all convex shapes such as btBoxShape...
btShapeHull(const btConvexShape *shape)
bool buildHull(btScalar margin)
btAlignedObjectArray< btVector3 > m_vertices
unsigned int m_numIndices
btAlignedObjectArray< unsigned int > m_indices
static btVector3 * getUnitSpherePoints()
const btConvexShape * m_shape
btVector3 can be used to represent 3D points and vectors.