65 mNormalEpsilon = 0.001f;
78 mVertexStride = stride;
85 if ( mFlags & flag )
return true;
136 HalfEdge(
short _ea,
unsigned char _v,
unsigned char _p):ea(_ea),v(_v),p(_p){}
147 ConvexH(
int vertices_size,
int edges_size,
int facets_size);
156 int4(
int _x,
int _y,
int _z,
int _w){x=_x;y=_y;z=_z;w=_w;}
200 bool ComputeHull(
unsigned int vcount,
const btVector3 *vertices,
PHullResult &result,
unsigned int vlimit);
212 int calchull(
btVector3 *verts,
int verts_count,
TUIntArray& tris_out,
int &tris_count,
int vlimit);
214 int calchullgen(
btVector3 *verts,
int verts_count,
int vlimit);
228 void BringOutYourDead(
const btVector3* verts,
unsigned int vcount,
btVector3* overts,
unsigned int &ocount,
unsigned int* indices,
unsigned indexcount);
230 bool CleanupVertices(
unsigned int svcount,
233 unsigned int &vcount,
240 #endif //BT_CD_HULL_H int4(int _x, int _y, int _z, int _w)
void SetHullFlag(HullFlag flag)
btAlignedObjectArray< HalfEdge > edges
bool HasHullFlag(HullFlag flag) const
btAlignedObjectArray< unsigned int > m_Indices
const btVector3 * mVertices
btPlane(const btVector3 &n, btScalar d)
const int & operator[](int i) const
void ClearHullFlag(HullFlag flag)
btAlignedObjectArray< btVector3 > vertices
btAlignedObjectArray< class btHullTriangle * > m_tris
btAlignedObjectArray< int > m_vertexIndexMapping
btAlignedObjectArray< btPlane > facets
HullDesc(HullFlag flag, unsigned int vcount, const btVector3 *vertices, unsigned int stride=sizeof(btVector3))
btAlignedObjectArray< btVector3 > m_OutputVertices
btVector3 can be used to represent 3D points and vectors.
unsigned int mNumOutputVertices
unsigned int mVertexStride
HalfEdge(short _ea, unsigned char _v, unsigned char _p)
The HullLibrary class can create a convex hull from a collection of vertices, using the ComputeHull m...
unsigned int mMaxVertices
btAlignedObjectArray< unsigned int > TUIntArray
includes modifications/improvements by John Ratcliff, see BringOutYourDead below. ...
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...