64 mNormalEpsilon = 0.001f;
77 mVertexStride = stride;
84 if (mFlags & flag)
return true;
132 HalfEdge(
short _ea,
unsigned char _v,
unsigned char _p) : ea(_ea), v(_v), p(_p) {}
143 ConvexH(
int vertices_size,
int edges_size,
int facets_size);
151 int4(
int _x,
int _y,
int _z,
int _w)
194 bool ComputeHull(
unsigned int vcount,
const btVector3* vertices,
PHullResult& result,
unsigned int vlimit);
206 int calchull(
btVector3* verts,
int verts_count,
TUIntArray& tris_out,
int& tris_count,
int vlimit);
208 int calchullgen(
btVector3* verts,
int verts_count,
int vlimit);
222 void BringOutYourDead(
const btVector3* verts,
unsigned int vcount,
btVector3* overts,
unsigned int& ocount,
unsigned int* indices,
unsigned indexcount);
224 bool CleanupVertices(
unsigned int svcount,
227 unsigned int& vcount,
233 #endif //BT_CD_HULL_H int4(int _x, int _y, int _z, int _w)
void SetHullFlag(HullFlag flag)
btAlignedObjectArray< HalfEdge > edges
btAlignedObjectArray< unsigned int > m_Indices
const btVector3 * mVertices
btPlane(const btVector3 &n, btScalar d)
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
bool HasHullFlag(HullFlag flag) const
const int & operator[](int i) const
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...