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();
58 void optimizeConvexHull();
62 return m_unscaledPoints[i] * m_localScaling;
67 return m_unscaledPoints.
size();
72 virtual void batchedUnitVectorGetSupportingVertexWithoutMargin(
const btVector3* vectors,
btVector3* supportVerticesOut,
int numVectors)
const;
79 virtual const char*
getName()
const {
return "Convex";}
82 virtual int getNumVertices()
const;
83 virtual int getNumEdges()
const;
85 virtual void getVertex(
int i,
btVector3& vtx)
const;
86 virtual int getNumPlanes()
const;
91 virtual void setLocalScaling(
const btVector3& scaling);
93 virtual int calculateSerializeBufferSize()
const;
96 virtual const char* serialize(
void* dataBuffer,
btSerializer* serializer)
const;
120 #endif //BT_CONVEX_HULL_SHAPE_H
btConvexInternalShapeData m_convexInternalShapeData
btVector3DoubleData * m_unscaledPointsDoublePtr
const btVector3 * getUnscaledPoints() const
#define SIMD_FORCE_INLINE
btAlignedObjectArray< btVector3 > m_unscaledPoints
do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64
const btVector3 * getPoints() const
getPoints is obsolete, please use getUnscaledPoints
btVector3 * getUnscaledPoints()
do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64
btVector3 getScaledPoint(int i) const
btVector3FloatData * m_unscaledPointsFloatPtr
btVector3 can be used to represent 3D points and vectors.
#define ATTRIBUTE_ALIGNED16(a)
int size() const
return the number of elements in the array
The btPolyhedralConvexAabbCachingShape adds aabb caching to the btPolyhedralConvexShape.
virtual const char * getName() const
#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.
virtual int calculateSerializeBufferSize() const
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...