16#ifndef BT_CONVEX_HULL_SHAPE_H
17#define BT_CONVEX_HULL_SHAPE_H
43 return &m_unscaledPoints[0];
48 return &m_unscaledPoints[0];
54 return getUnscaledPoints();
57 void optimizeConvexHull();
61 return m_unscaledPoints[i] * m_localScaling;
66 return m_unscaledPoints.
size();
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
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
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()
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