Panda3D
Public Member Functions | List of all members
PhysxSoftBodyMeshDesc Class Reference

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...
 

Detailed Description

Definition at line 25 of file physxSoftBodyMeshDesc.h.

Member Function Documentation

◆ is_valid()

bool PhysxSoftBodyMeshDesc::is_valid ( ) const
inline

Returns true if the descriptor is valid.

Definition at line 49 of file physxSoftBodyMeshDesc.I.

◆ set_num_tetrahedra()

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.

◆ set_num_vertices()

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.

◆ set_tetrahedron()

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.

◆ set_vertex()

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.


The documentation for this class was generated from the following files: