PxConvexMeshDesc Class Reference
[Cooking]
Descriptor class for PxConvexMesh.
More...
#include <PxConvexMeshDesc.h>
Collaboration diagram for PxConvexMeshDesc:
![Collaboration graph](classPxConvexMeshDesc__coll__graph.png)
Public Member Functions | |
PX_INLINE | PxConvexMeshDesc () |
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 | |
PxBoundedData | points |
Pointer to array of vertex positions. Pointer to first vertex point. Caller may add pointStrideBytes bytes to the pointer to access the next point. | |
PxBoundedData | triangles |
Pointer to array of triangle indices. | |
PxConvexFlags | flags |
Flags bits, combined from values of the enum PxConvexFlag. |
Detailed Description
Descriptor class for PxConvexMesh.
- Note:
- The number of vertices and the number of convex polygons in a cooked convex mesh is limited to 256.
Member Data Documentation
Pointer to array of vertex positions. Pointer to first vertex point. Caller may add pointStrideBytes bytes to the pointer to access the next point.
Default: NULL
Referenced by isValid().
Pointer to array of triangle indices.
Pointer to first triangle. Caller may add triangleStrideBytes bytes to the pointer to access the next triangle.
These are triplets of 0 based indices: vert0 vert1 vert2 vert0 vert1 vert2 vert0 vert1 vert2 ...
Where vertex is either a 32 or 16 bit unsigned integer. There are numTriangles*3 indices.
This is declared as a void pointer because it is actually either an PxU16 or a PxU32 pointer.
Default: NULL
- See also:
- PxConvexFlag::e16_BIT_INDICES
Referenced by isValid().
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