Public Member Functions | Public Attributes | List of all members
PxClothMeshDesc Class Reference

Descriptor class for a cloth mesh. More...

#include <PxClothMeshDesc.h>

Collaboration diagram for PxClothMeshDesc:
Collaboration graph
[legend]

Public Member Functions

PX_INLINE PxClothMeshDesc ()
 constructor sets to default. More...
 
PX_INLINE void setToDefault ()
 (re)sets the structure to the default. More...
 
PX_INLINE bool isValid () const
 Returns true if the descriptor is valid. More...
 

Public Attributes

PxBoundedData points
 Pointer to first vertex point. More...
 
PxBoundedData invMasses
 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. More...
 
PxBoundedData triangles
 Pointer to the first triangle. More...
 
PxBoundedData quads
 Pointer to the first quad. More...
 
PxMeshFlags flags
 Flags bits, combined from values of the enum PxMeshFlag. More...
 

Detailed Description

Descriptor class for a cloth mesh.

See Also
PxCooking.cookClothMesh()

Member Data Documentation

PxMeshFlags PxClothMeshDesc::flags

Flags bits, combined from values of the enum PxMeshFlag.

PxBoundedData PxClothMeshDesc::invMasses

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.

PxBoundedData PxClothMeshDesc::points

Pointer to first vertex point.

PxBoundedData PxClothMeshDesc::quads

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 PxU16 or a PxU32 pointer.

PxBoundedData PxClothMeshDesc::triangles

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 PxU16 or a PxU32 pointer.


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


Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com