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

Descriptor class for PxConvexMesh. More...

#include <PxConvexMeshDesc.h>

Collaboration diagram for PxConvexMeshDesc:
Collaboration graph
[legend]

Public Member Functions

PX_INLINE PxConvexMeshDesc ()
 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
 Vertex positions data in PxBoundedData format. More...
 
PX_DEPRECATED PxBoundedData triangles
 Triangle indices data in PxBoundedData format. More...
 
PxBoundedData polygons
 Polygons data in PxBoundedData format. More...
 
PxBoundedData indices
 Polygon indices data in PxBoundedData format. More...
 
PxConvexFlags flags
 Flags bits, combined from values of the enum PxConvexFlag. More...
 
PxU16 vertexLimit
 Limits the number of vertices of the result convex mesh. Hard maximum limit is 256 and minimum limit is 4. More...
 

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.
See Also
PxConvexMesh PxConvexMeshGeometry PxShape PxPhysics.createConvexMesh()

Member Data Documentation

PxConvexFlags PxConvexMeshDesc::flags

Flags bits, combined from values of the enum PxConvexFlag.

Default: 0

Referenced by isValid().

PxBoundedData PxConvexMeshDesc::indices

Polygon indices data in PxBoundedData format.

Pointer to first index.

Default: NULL

This is declared as a void pointer because it is actually either an PxU16 or a PxU32 pointer.

See Also
PxHullPolygon PxConvexFlag::e16_BIT_INDICES

Referenced by isValid().

PxBoundedData PxConvexMeshDesc::points

Vertex positions data in PxBoundedData format.

Default: NULL

Referenced by isValid().

PxBoundedData PxConvexMeshDesc::polygons

Polygons data in PxBoundedData format.

Pointer to first polygon.

Default: NULL

See Also
PxHullPolygon

Referenced by isValid().

PX_DEPRECATED PxBoundedData PxConvexMeshDesc::triangles

Triangle indices data in PxBoundedData format.

Deprecated:
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 function is deprecated in favor of creating hulls from polygons directly. To obtain polygons from your triangles use computeHullPolygons.

Default: NULL

See Also
PxConvexFlag::e16_BIT_INDICES

Referenced by isValid().

PxU16 PxConvexMeshDesc::vertexLimit

Limits the number of vertices of the result convex mesh. Hard maximum limit is 256 and minimum limit is 4.

Please note, that if a vertex limit is used together with the inflation flag, beveling sharp edges in the inflation code may cause the limit to be exceeded.

Default: 256


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