21 #define NUM_UNITSPHERE_POINTS 42
22 #define NUM_UNITSPHERE_POINTS_HIGHRES 256
44 for (i = 0; i < numSampleDirections; i++)
49 int numPDA =
m_shape->getNumPreferredPenetrationDirections();
52 for (
int s = 0; s < numPDA; s++)
56 supportPoints[i++] =
m_shape->localGetSupportingVertex(
norm);
57 numSampleDirections++;
62 hd.
mVcount =
static_cast<unsigned int>(numSampleDirections);
64 #ifdef BT_USE_DOUBLE_PRECISION
419 return sUnitSpherePointsHighres;
420 return sUnitSpherePoints;
btConvexShape()
not supported on IBM SDK, until we fix the alignment of btVector3
#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_HIGHRES
#define NUM_UNITSPHERE_POINTS
const btConvexShape * m_shape
btShapeHull
btShapeHull implemented by John McCutchan.
static btVector3 * getUnitSpherePoints(int highres=0)
btAlignedObjectArray< unsigned int > m_indices
unsigned int m_numIndices
bool buildHull(btScalar margin, int highres=0)
SIMD_FORCE_INLINE btScalar norm() const
Return the norm (length) of the vector.
btVector3
btVector3 can be used to represent 3D points and vectors. It has an un-used w component to suit 16-by...
const btVector3 * mVertices
unsigned int mVertexStride
HullError ReleaseResult(HullResult &result)
HullError CreateConvexHull(const HullDesc &desc, HullResult &result)
btAlignedObjectArray< btVector3 > m_OutputVertices
btAlignedObjectArray< unsigned int > m_Indices
unsigned int mNumOutputVertices
SIMD_FORCE_INLINE void clear()
clear the array, deallocated memory. Generally it is better to use array.resize(0),...
SIMD_FORCE_INLINE void resize(int newsize, const T &fillData=T())