16#ifndef BT_CONVEX_HULL_SHAPE_H
17#define BT_CONVEX_HULL_SHAPE_H
57 void optimizeConvexHull();
71 virtual void batchedUnitVectorGetSupportingVertexWithoutMargin(
const btVector3* vectors,
btVector3* supportVerticesOut,
int numVectors)
const;
76 virtual const char*
getName()
const {
return "Convex"; }
78 virtual int getNumVertices()
const;
79 virtual int getNumEdges()
const;
81 virtual void getVertex(
int i,
btVector3& vtx)
const;
82 virtual int getNumPlanes()
const;
87 virtual void setLocalScaling(
const btVector3& scaling);
89 virtual int calculateSerializeBufferSize()
const;
92 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
The btAlignedObjectArray template class uses a subset of the stl::vector interface for its methods It...
btConvexHullShape(const btScalar *points=0, int numPoints=0, int stride=sizeof(btVector3))
this constructor optionally takes in a pointer to points.
btAlignedObjectArray< btVector3 > m_unscaledPoints
btVector3 * getUnscaledPoints()
const btVector3 * getUnscaledPoints() const
const btVector3 * getPoints() const
getPoints is obsolete, please use getUnscaledPoints
virtual const char * getName() const
btVector3 getScaledPoint(int i) const
virtual int calculateSerializeBufferSize() const
BT_DECLARE_ALIGNED_ALLOCATOR()
btPolyhedralConvexAabbCachingShape()
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