Bullet Collision Detection & Physics Library
|
Go to the documentation of this file.
21 #define NUM_UNITSPHERE_POINTS 42
22 #define NUM_UNITSPHERE_POINTS_HIGHRES 256
44 for (i = 0; i < numSampleDirections; i++)
52 for (
int s = 0; s < numPDA; s++)
57 numSampleDirections++;
62 hd.
mVcount = static_cast<unsigned int>(numSampleDirections);
64 #ifdef BT_USE_DOUBLE_PRECISION
419 return sUnitSpherePointsHighres;
420 return sUnitSpherePoints;
virtual int getNumPreferredPenetrationDirections() const =0
HullError ReleaseResult(HullResult &result)
unsigned int m_numIndices
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
btAlignedObjectArray< unsigned int > m_indices
btAlignedObjectArray< btVector3 > m_OutputVertices
void clear()
clear the array, deallocated memory. Generally it is better to use array.resize(0),...
The HullLibrary class can create a convex hull from a collection of vertices, using the ComputeHull m...
static btVector3 * getUnitSpherePoints(int highres=0)
unsigned int mNumOutputVertices
virtual void getPreferredPenetrationDirection(int index, btVector3 &penetrationVector) const =0
const btVector3 * mVertices
virtual btVector3 localGetSupportingVertex(const btVector3 &vec) const =0
HullError CreateConvexHull(const HullDesc &desc, HullResult &result)
void resize(int newsize, const T &fillData=T())
#define MAX_PREFERRED_PENETRATION_DIRECTIONS
#define NUM_UNITSPHERE_POINTS
const btConvexShape * m_shape
btShapeHull(const btConvexShape *shape)
btVector3 can be used to represent 3D points and vectors.
unsigned int mVertexStride
The btConvexShape is an abstract shape interface, implemented by all convex shapes such as btBoxShape...
btAlignedObjectArray< btVector3 > m_vertices
#define NUM_UNITSPHERE_POINTS_HIGHRES
btAlignedObjectArray< unsigned int > m_Indices
bool buildHull(btScalar margin, int highres=0)
int size() const
return the number of elements in the array