16 #ifndef BT_CONVEX_HULL_SHAPE_H
17 #define BT_CONVEX_HULL_SHAPE_H
42 return &m_unscaledPoints[0];
47 return &m_unscaledPoints[0];
53 return getUnscaledPoints();
56 void optimizeConvexHull();
60 return m_unscaledPoints[i] * m_localScaling;
65 return m_unscaledPoints.
size();
70 virtual void batchedUnitVectorGetSupportingVertexWithoutMargin(
const btVector3* vectors,
btVector3* supportVerticesOut,
int numVectors)
const;
75 virtual const char*
getName()
const {
return "Convex"; }
77 virtual int getNumVertices()
const;
78 virtual int getNumEdges()
const;
80 virtual void getVertex(
int i,
btVector3& vtx)
const;
81 virtual int getNumPlanes()
const;
86 virtual void setLocalScaling(
const btVector3& scaling);
88 virtual int calculateSerializeBufferSize()
const;
91 virtual const char* serialize(
void* dataBuffer,
btSerializer* serializer)
const;
static void addPoint(unsigned int &vcount, btVector3 *p, btScalar x, btScalar y, btScalar z)
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
#define ATTRIBUTE_ALIGNED16(a)
#define SIMD_FORCE_INLINE
int size() const
return the number of elements in the array
The btConvexHullShape implements an implicit convex hull of an array of vertices.
btAlignedObjectArray< btVector3 > m_unscaledPoints
const btVector3 * getUnscaledPoints() const
virtual const char * getName() const
btVector3 * getUnscaledPoints()
btVector3 getScaledPoint(int i) const
virtual int calculateSerializeBufferSize() const
BT_DECLARE_ALIGNED_ALLOCATOR()
const btVector3 * getPoints() const
getPoints is obsolete, please use getUnscaledPoints
The btPolyhedralConvexAabbCachingShape adds aabb caching to the btPolyhedralConvexShape.
btVector3 can be used to represent 3D points and vectors.
do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64
btVector3DoubleData * m_unscaledPointsDoublePtr
btVector3FloatData * m_unscaledPointsFloatPtr
btConvexInternalShapeData m_convexInternalShapeData
do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64