#include <ClothMeshDesc.h>
Public Member Functions | |
PX_INLINE | ClothMeshDesc () |
constructor sets to default. | |
PX_INLINE bool | isValid () const |
Returns true if the descriptor is valid. | |
PX_INLINE void | setToDefault () |
(re)sets the structure to the default. | |
Public Attributes | |
unsigned int | flags |
Flags bits, combined from values of the enum MeshFlag. | |
BoundedData | invMasses |
Determines whether particle is simulated or static. | |
BoundedData | points |
Pointer to first vertex point. | |
BoundedData | pointsStiffness |
Pointer to first stiffness value in stiffnes per vertex array. | |
BoundedData | quads |
Pointer to the first quad. | |
BoundedData | triangles |
Pointer to the first triangle. |
PX_INLINE nv::cloth::ClothMeshDesc::ClothMeshDesc | ( | ) |
constructor sets to default.
PX_INLINE bool nv::cloth::ClothMeshDesc::isValid | ( | ) | const |
Returns true if the descriptor is valid.
PX_INLINE void nv::cloth::ClothMeshDesc::setToDefault | ( | ) |
(re)sets the structure to the default.
unsigned int nv::cloth::ClothMeshDesc::flags |
Flags bits, combined from values of the enum MeshFlag.
Determines whether particle is simulated or static.
A positive value denotes that the particle is being simulated, zero denotes a static particle. This data is used to generate tether and zero stretch constraints. If invMasses.data is null, all particles are assumed to be simulated and no tether and zero stretch constraints are being generated.
Pointer to first vertex point.
Pointer to first stiffness value in stiffnes per vertex array.
empty if unused.
Pointer to the first quad.
These are quadruples of 0 based indices: vert0 vert1 vert2 vert3 vert0 vert1 vert2 vert3 vert0 vert1 vert2 vert3 ...
where vert* is either a 32 or 16 bit unsigned integer. There are a total of 4*count indices. The stride determines the byte offset to the next index quadruple.
This is declared as a void pointer because it is actually either an physx::PxU16 or a physx::PxU32 pointer.
Pointer to the first triangle.
These are triplets of 0 based indices: vert0 vert1 vert2 vert0 vert1 vert2 vert0 vert1 vert2 ...
where vert* is either a 32 or 16 bit unsigned integer. There are a total of 3*count indices. The stride determines the byte offset to the next index triple.
This is declared as a void pointer because it is actually either an physx::PxU16 or a physx::PxU32 pointer.