16#ifndef BT_SIMPLEX_1TO4_SHAPE
17#define BT_SIMPLEX_1TO4_SHAPE
37 btBU_Simplex1to4(
const btVector3& pt0,
const btVector3& pt1,
const btVector3& pt2);
38 btBU_Simplex1to4(
const btVector3& pt0,
const btVector3& pt1,
const btVector3& pt2,
const btVector3& pt3);
45 virtual void getAabb(
const btTransform& t, btVector3& aabbMin, btVector3& aabbMax)
const;
55 virtual void getEdge(
int i, btVector3& pa, btVector3& pb)
const;
57 virtual void getVertex(
int i, btVector3& vtx)
const;
61 virtual void getPlane(btVector3 & planeNormal, btVector3 & planeSupport,
int i)
const;
68 virtual const char*
getName()
const {
return "btBU_Simplex1to4"; }
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
#define ATTRIBUTE_ALIGNED16(a)
BT_DECLARE_ALIGNED_ALLOCATOR()
virtual bool isInside(const btVector3 &pt, btScalar tolerance) const
virtual const char * getName() const
getName is for debugging
virtual int getNumVertices() const
virtual void getEdge(int i, btVector3 &pa, btVector3 &pb) const
virtual void getAabb(const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const
getAabb returns the axis aligned bounding box in the coordinate frame of the given transform t.
virtual int getNumPlanes() const
virtual void getVertex(int i, btVector3 &vtx) const
virtual void getPlane(btVector3 &planeNormal, btVector3 &planeSupport, int i) const
void reset()
clear internal cached data and reset random seed
void addVertex(const btVector3 &pt)
virtual int getIndex(int i) const
virtual int getNumEdges() const
The btPolyhedralConvexAabbCachingShape adds aabb caching to the btPolyhedralConvexShape.