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