Public Member Functions | |
const NxSoftBodyMeshDesc & | get_desc () const |
bool | is_valid () const |
Returns true if the descriptor is valid. More... | |
void | set_num_tetrahedra (unsigned int n) |
Sets the number of tetrahedra to be stored in this soft body mesh. More... | |
void | set_num_vertices (unsigned int n) |
Sets the number of vertices to be stored within this soft body mesh. More... | |
void | set_tetrahedron (unsigned int idx, unsigned int i1, unsigned int i2, unsigned int i3, unsigned int i4) |
Sets a single tetrahedron, by providing the three indices i1, i2, i3, i4. More... | |
void | set_vertex (unsigned int idx, const LPoint3f &vert) |
Sets a single vertex. More... | |
Definition at line 25 of file physxSoftBodyMeshDesc.h.
|
inline |
Returns true if the descriptor is valid.
Definition at line 49 of file physxSoftBodyMeshDesc.I.
void PhysxSoftBodyMeshDesc::set_num_tetrahedra | ( | unsigned int | numTetrahedra | ) |
Sets the number of tetrahedra to be stored in this soft body mesh.
This method must be called before any calls to set_tetrahedron are done!
Definition at line 56 of file physxSoftBodyMeshDesc.cxx.
void PhysxSoftBodyMeshDesc::set_num_vertices | ( | unsigned int | numVertices | ) |
Sets the number of vertices to be stored within this soft body mesh.
The function allocates memory for the vertices, but it does not set any vertices.
This method must be called before any calls to set_vertex are done!
Definition at line 25 of file physxSoftBodyMeshDesc.cxx.
void PhysxSoftBodyMeshDesc::set_tetrahedron | ( | unsigned int | idx, |
unsigned int | i1, | ||
unsigned int | i2, | ||
unsigned int | i3, | ||
unsigned int | i4 | ||
) |
Sets a single tetrahedron, by providing the three indices i1, i2, i3, i4.
Definition at line 72 of file physxSoftBodyMeshDesc.cxx.
void PhysxSoftBodyMeshDesc::set_vertex | ( | unsigned int | idx, |
const LPoint3f & | vert | ||
) |
Sets a single vertex.
You have to call the function set_num_vertices before you can call this function.
Definition at line 43 of file physxSoftBodyMeshDesc.cxx.