71 const btVector3* vertices,
72 unsigned int stride =
sizeof(btVector3))
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,
225 const btVector3* svertices,
227 unsigned int& vcount,
ATTR_WARN_UNUSED_RESULT const BMVert * v
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...
btVector3
btVector3 can be used to represent 3D points and vectors. It has an un-used w component to suit 16-by...
HalfEdge(short _ea, unsigned char _v, unsigned char _p)
btAlignedObjectArray< HalfEdge > edges
btAlignedObjectArray< btPlane > facets
btAlignedObjectArray< btVector3 > vertices
HullDesc(HullFlag flag, unsigned int vcount, const btVector3 *vertices, unsigned int stride=sizeof(btVector3))
bool HasHullFlag(HullFlag flag) const
void ClearHullFlag(HullFlag flag)
unsigned int mMaxVertices
const btVector3 * mVertices
unsigned int mVertexStride
void SetHullFlag(HullFlag flag)
HullError ReleaseResult(HullResult &result)
HullError CreateConvexHull(const HullDesc &desc, HullResult &result)
btAlignedObjectArray< int > m_vertexIndexMapping
btAlignedObjectArray< btVector3 > m_OutputVertices
btAlignedObjectArray< unsigned int > m_Indices
unsigned int mNumOutputVertices
btPlane(const btVector3 &n, btScalar d)
const int & operator[](int i) const
int4(int _x, int _y, int _z, int _w)
local_group_size(16, 16) .push_constant(Type b