| Bullet Collision Detection & Physics Library
    | 
 
 
 
Go to the documentation of this file.
   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)
 
  227                                                  unsigned int& vcount,  
 
  233 #endif  //BT_CD_HULL_H 
  
HullError ReleaseResult(HullResult &result)
unsigned int mMaxVertices
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
btAlignedObjectArray< btVector3 > vertices
btAlignedObjectArray< btVector3 > m_OutputVertices
void extrude(class btHullTriangle *t0, int v)
bool ComputeHull(unsigned int vcount, const btVector3 *vertices, PHullResult &result, unsigned int vlimit)
int4(int _x, int _y, int _z, int _w)
void deAllocateTriangle(btHullTriangle *)
The HullLibrary class can create a convex hull from a collection of vertices, using the ComputeHull m...
unsigned int mNumOutputVertices
const btVector3 * mVertices
HullDesc(HullFlag flag, unsigned int vcount, const btVector3 *vertices, unsigned int stride=sizeof(btVector3))
HullError CreateConvexHull(const HullDesc &desc, HullResult &result)
bool HasHullFlag(HullFlag flag) const
bool CleanupVertices(unsigned int svcount, const btVector3 *svertices, unsigned int stride, unsigned int &vcount, btVector3 *vertices, btScalar normalepsilon, btVector3 &scale)
btPlane(const btVector3 &n, btScalar d)
const int & operator[](int i) const
btAlignedObjectArray< class btHullTriangle * > m_tris
void BringOutYourDead(const btVector3 *verts, unsigned int vcount, btVector3 *overts, unsigned int &ocount, unsigned int *indices, unsigned indexcount)
btAlignedObjectArray< unsigned int > TUIntArray
includes modifications/improvements by John Ratcliff, see BringOutYourDead below.
btVector3 can be used to represent 3D points and vectors.
btHullTriangle * extrudable(btScalar epsilon)
void ClearHullFlag(HullFlag flag)
btAlignedObjectArray< btPlane > facets
btAlignedObjectArray< int > m_vertexIndexMapping
int calchullgen(btVector3 *verts, int verts_count, int vlimit)
class btHullTriangle * allocateTriangle(int a, int b, int c)
void b2bfix(btHullTriangle *s, btHullTriangle *t)
unsigned int mVertexStride
class ConvexH * ConvexHCrop(ConvexH &convex, const btPlane &slice)
void SetHullFlag(HullFlag flag)
btAlignedObjectArray< HalfEdge > edges
HalfEdge(short _ea, unsigned char _v, unsigned char _p)
void checkit(btHullTriangle *t)
btAlignedObjectArray< unsigned int > m_Indices
int calchull(btVector3 *verts, int verts_count, TUIntArray &tris_out, int &tris_count, int vlimit)
void removeb2b(btHullTriangle *s, btHullTriangle *t)
int4 FindSimplex(btVector3 *verts, int verts_count, btAlignedObjectArray< int > &allow)