Panda3D
Public Member Functions

PhysxSoftBodyMeshDesc Class Reference

List of all members.

Public Member Functions

const NxSoftBodyMeshDesc & get_desc () const
bool is_valid () const
 Returns true if the descriptor is valid.
void set_num_tetrahedra (unsigned int n)
 Sets the number of tetrahedra to be stored in this soft body mesh.
void set_num_vertices (unsigned int n)
 Sets the number of vertices to be stored within this soft body mesh.
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.
void set_vertex (unsigned int idx, const LPoint3f &vert)
 Sets a single vertex.

Detailed Description

Definition at line 27 of file physxSoftBodyMeshDesc.h.


Member Function Documentation

bool PhysxSoftBodyMeshDesc::is_valid ( ) const [inline]

Returns true if the descriptor is valid.

Definition at line 57 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 66 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 29 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 85 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 49 of file physxSoftBodyMeshDesc.cxx.

References PhysxManager::point3_to_nxVec3().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations