22 #define NUM_UNITSPHERE_POINTS 42
46 for (
int i=0;i<numPDA;i++)
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;
virtual btVector3 localGetSupportingVertex(const btVector3 &vec) const =0
unsigned int m_numIndices
btAlignedObjectArray< unsigned int > m_Indices
virtual void getPreferredPenetrationDirection(int index, btVector3 &penetrationVector) const =0
static btVector3 * getUnitSpherePoints()
btAlignedObjectArray< unsigned int > m_indices
The btConvexShape is an abstract shape interface, implemented by all convex shapes such as btBoxShape...
const btVector3 * mVertices
void clear()
clear the array, deallocated memory. Generally it is better to use array.resize(0), to reduce performance overhead of run-time memory (de)allocations.
int size() const
return the number of elements in the array
HullError CreateConvexHull(const HullDesc &desc, HullResult &result)
bool buildHull(btScalar margin)
virtual int getNumPreferredPenetrationDirections() const =0
#define MAX_PREFERRED_PENETRATION_DIRECTIONS
btAlignedObjectArray< btVector3 > m_OutputVertices
#define NUM_UNITSPHERE_POINTS
const btConvexShape * m_shape
float norm(const Quat &quat)
btShapeHull(const btConvexShape *shape)
btVector3 can be used to represent 3D points and vectors.
unsigned int mNumOutputVertices
void resize(int newsize, const T &fillData=T())
unsigned int mVertexStride
The HullLibrary class can create a convex hull from a collection of vertices, using the ComputeHull m...
HullError ReleaseResult(HullResult &result)
btAlignedObjectArray< btVector3 > m_vertices
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...