16#ifndef BT_CONVEX_HULL_SHAPE_H
17#define BT_CONVEX_HULL_SHAPE_H
42 return &m_unscaledPoints[0];
47 return &m_unscaledPoints[0];
65 return m_unscaledPoints.
size();
75 virtual const char*
getName()
const {
return "Convex"; }
79 virtual void getEdge(
int i, btVector3& pa, btVector3& pb)
const;
80 virtual void getVertex(
int i, btVector3& vtx)
const;
82 virtual void getPlane(btVector3 & planeNormal, btVector3 & planeSupport,
int i)
const;
virtual void recalculateLocalAabb()
virtual void setLocalScaling(const btVector3 &scaling)
in case we receive negative scaling
btConvexHullShape(const btScalar *points=0, int numPoints=0, int stride=sizeof(btVector3))
BT_DECLARE_ALIGNED_ALLOCATOR()
virtual btVector3 localGetSupportingVertexWithoutMargin(const btVector3 &vec) const
btConvexShape Interface
SIMD_FORCE_INLINE btVector3 getScaledPoint(int i) const
SIMD_FORCE_INLINE int getNumPoints() const
virtual bool isInside(const btVector3 &pt, btScalar tolerance) const
virtual void project(const btTransform &trans, const btVector3 &dir, btScalar &minProj, btScalar &maxProj, btVector3 &witnesPtMin, btVector3 &witnesPtMax) const
virtual int calculateSerializeBufferSize() const
void optimizeConvexHull()
virtual btVector3 localGetSupportingVertex(const btVector3 &vec) const
virtual const char * getName() const
const btVector3 * getPoints() const
getPoints is obsolete, please use getUnscaledPoints
virtual int getNumVertices() const
btVector3 * getUnscaledPoints()
virtual void getEdge(int i, btVector3 &pa, btVector3 &pb) const
virtual int getNumPlanes() const
virtual void getVertex(int i, btVector3 &vtx) const
virtual void getPlane(btVector3 &planeNormal, btVector3 &planeSupport, int i) const
virtual const char * serialize(void *dataBuffer, btSerializer *serializer) const
fills the dataBuffer and returns the struct name (and 0 on failure)
virtual void batchedUnitVectorGetSupportingVertexWithoutMargin(const btVector3 *vectors, btVector3 *supportVerticesOut, int numVectors) const
virtual int getNumEdges() const
void addPoint(const btVector3 &point, bool recalculateLocalAabb=true)
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
SIMD_FORCE_INLINE int size() const
return the number of elements in the array
The btPolyhedralConvexAabbCachingShape adds aabb caching to the btPolyhedralConvexShape.
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