PxConvexFlag Struct Reference
[Cooking]
Flags which describe the format and behavior of a convex mesh.
More...
#include <PxConvexMeshDesc.h>
Public Types | |
enum | Enum { eFLIPNORMALS = (1<<0), e16_BIT_INDICES = (1<<1), eCOMPUTE_CONVEX = (1<<2), eINFLATE_CONVEX = (1<<3), eUSE_UNCOMPRESSED_NORMALS = (1<<5) } |
Detailed Description
Flags which describe the format and behavior of a convex mesh.Member Enumeration Documentation
enum PxConvexFlag::Enum |
- Enumerator:
-
eFLIPNORMALS Used to flip the normals if the winding order is reversed. The Nx libraries assume that the face normal of a triangle with vertices [a,b,c] can be computed as: edge1 = b-a edge2 = c-a face_normal = edge1 x edge2.
Note: this is the same as counterclockwise winding in a right handed graphics coordinate system.
If this does not match the winding order for your triangles, raise the below flag.
e16_BIT_INDICES Denotes the use of 16-bit vertex indices in PxConvexMeshDesc::triangles. (otherwise, 32-bit indices are assumed) - See also:
- PxConvexMeshDesc.triangles
eCOMPUTE_CONVEX Automatically recomputes the hull from the vertices. If this flag is not set, you must provide the entire geometry manually. eINFLATE_CONVEX Inflates the convex object according to skin width. - Note:
- This flag is only used in combination with eCOMPUTE_CONVEX.
- See also:
- PxCookingParams
eUSE_UNCOMPRESSED_NORMALS Instructs cooking to save normals uncompressed. The cooked hull data will be larger, but will load faster. - See also:
- PxCookingParams
The documentation for this struct 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