PxClothMeshDesc Class Reference
[Cooking]
Descriptor class for a cloth mesh.
More...
#include <PxClothMeshDesc.h>


Public Member Functions | |
PX_INLINE | PxClothMeshDesc () |
constructor sets to default. | |
PX_INLINE void | setToDefault () |
(re)sets the structure to the default. | |
PX_INLINE bool | isValid () const |
Returns true if the descriptor is valid. | |
Public Attributes | |
const PxClothMeshEdgeFlags * | edgeFlags |
Edge flags for cooking. | |
const PxClothMeshVertFlags * | vertFlags |
Vertex flags for cooking. |
Detailed Description
Descriptor class for a cloth mesh.
- See also:
- PxCooking.cookClothMesh()
Member Data Documentation
Edge flags for cooking.
Information about mesh edge properties can be provided if available. The flags are stored as triples, a triple for each triangle. A flag triple is interpreted as follows:
flag0 flag1 flag2
for a triangle with vertex indices
v0, v1, v2
flag0 => edge v0-v1 flag1 => edge v1-v2 flag2 => edge v2-v0
There are numTriangles*3 flags.
If set to NULL, cooking will analyze the mesh and create the flags based on the direction of gravity and some heuristics.
Referenced by PxClothMeshDesc().
Vertex flags for cooking.
Information about mesh vertex properties can be provided if available. The flags are assigned per each vertex, so the size of this array should be the same as number of particles in the mesh.
If set to NULL, cooking will ignore this flag.
Referenced by PxClothMeshDesc().
The documentation for this class was generated from the following file:
Copyright © 2008-2012 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com