Public Types | List of all members
PxConvexFlag Struct Reference

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),
  eCHECK_ZERO_AREA_TRIANGLES = (1<<4)
}
 

Detailed Description

Flags which describe the format and behavior of a convex mesh.

Member Enumeration Documentation

Enumerator
eFLIPNORMALS 

Used to flip the normals if the winding order is reversed.

The PhysX 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 that does not match the winding order for your triangles, raise this flag.

Deprecated as triangles will not be accepted in future releases as input for convex mesh descriptor.

e16_BIT_INDICES 

Denotes the use of 16-bit vertex indices in PxConvexMeshDesc::triangles or PxConvexMeshDesc::polygons. (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. If the convex hull computation fails, use this flag to increase robustness.

Note
This flag is only used in combination with eCOMPUTE_CONVEX.
See Also
PxCookingParams
eCHECK_ZERO_AREA_TRIANGLES 

Checks and removes almost zero-area triangles during convex hull computation. The rejected area size is specified in PxCookingParams::areaTestEpsilon.

Note
This flag is only used in combination with eCOMPUTE_CONVEX.
If this flag is used in combination with eINFLATE_CONVEX, the newly added triangles by the inflation algorithm are not checked (size of the triangles depends on PxCooking::skinWidth).
See Also
PxCookingParams PxCookingParams::areaTestEpsilon

The documentation for this struct 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