HullLibrary Class Reference
#include <btConvexHull.h>
List of all members.
Public Member Functions |
HullError | CreateConvexHull (const HullDesc &desc, HullResult &result) |
HullError | ReleaseResult (HullResult &result) |
Public Attributes |
btAlignedObjectArray< int > | m_vertexIndexMapping |
Private Member Functions |
class btHullTriangle * | allocateTriangle (int a, int b, int c) |
void | b2bfix (btHullTriangle *s, btHullTriangle *t) |
void | BringOutYourDead (const btVector3 *verts, unsigned int vcount, btVector3 *overts, unsigned int &ocount, unsigned int *indices, unsigned indexcount) |
int | calchull (btVector3 *verts, int verts_count, TUIntArray &tris_out, int &tris_count, int vlimit) |
int | calchullgen (btVector3 *verts, int verts_count, int vlimit) |
void | checkit (btHullTriangle *t) |
bool | CleanupVertices (unsigned int svcount, const btVector3 *svertices, unsigned int stride, unsigned int &vcount, btVector3 *vertices, btScalar normalepsilon, btVector3 &scale) |
bool | ComputeHull (unsigned int vcount, const btVector3 *vertices, PHullResult &result, unsigned int vlimit) |
class ConvexH * | ConvexHCrop (ConvexH &convex, const btPlane &slice) |
void | deAllocateTriangle (btHullTriangle *) |
btHullTriangle * | extrudable (btScalar epsilon) |
void | extrude (class btHullTriangle *t0, int v) |
int4 | FindSimplex (btVector3 *verts, int verts_count, btAlignedObjectArray< int > &allow) |
void | removeb2b (btHullTriangle *s, btHullTriangle *t) |
ConvexH * | test_cube () |
Private Attributes |
btAlignedObjectArray< class
btHullTriangle * > | m_tris |
Detailed Description
The HullLibrary class can create a convex hull from a collection of vertices, using the ComputeHull method. The btShapeHull class uses this HullLibrary to create a approximate convex mesh given a general (non-polyhedral) convex shape.
Definition at line 184 of file btConvexHull.h.
Member Function Documentation
class btHullTriangle* HullLibrary::allocateTriangle |
( |
int |
a, |
|
|
int |
b, |
|
|
int |
c | |
|
) |
| | [private] |
void HullLibrary::b2bfix |
( |
btHullTriangle * |
s, |
|
|
btHullTriangle * |
t | |
|
) |
| | [private] |
void HullLibrary::BringOutYourDead |
( |
const btVector3 * |
verts, |
|
|
unsigned int |
vcount, |
|
|
btVector3 * |
overts, |
|
|
unsigned int & |
ocount, |
|
|
unsigned int * |
indices, |
|
|
unsigned |
indexcount | |
|
) |
| | [private] |
int HullLibrary::calchull |
( |
btVector3 * |
verts, |
|
|
int |
verts_count, |
|
|
TUIntArray & |
tris_out, |
|
|
int & |
tris_count, |
|
|
int |
vlimit | |
|
) |
| | [private] |
int HullLibrary::calchullgen |
( |
btVector3 * |
verts, |
|
|
int |
verts_count, |
|
|
int |
vlimit | |
|
) |
| | [private] |
void HullLibrary::checkit |
( |
btHullTriangle * |
t |
) |
[private] |
bool HullLibrary::CleanupVertices |
( |
unsigned int |
svcount, |
|
|
const btVector3 * |
svertices, |
|
|
unsigned int |
stride, |
|
|
unsigned int & |
vcount, |
|
|
btVector3 * |
vertices, |
|
|
btScalar |
normalepsilon, |
|
|
btVector3 & |
scale | |
|
) |
| | [private] |
bool HullLibrary::ComputeHull |
( |
unsigned int |
vcount, |
|
|
const btVector3 * |
vertices, |
|
|
PHullResult & |
result, |
|
|
unsigned int |
vlimit | |
|
) |
| | [private] |
void HullLibrary::deAllocateTriangle |
( |
btHullTriangle * |
|
) |
[private] |
btHullTriangle* HullLibrary::extrudable |
( |
btScalar |
epsilon |
) |
[private] |
void HullLibrary::extrude |
( |
class btHullTriangle * |
t0, |
|
|
int |
v | |
|
) |
| | [private] |
void HullLibrary::removeb2b |
( |
btHullTriangle * |
s, |
|
|
btHullTriangle * |
t | |
|
) |
| | [private] |
ConvexH* HullLibrary::test_cube |
( |
|
) |
[private] |
Member Data Documentation
The documentation for this class was generated from the following file: