29#ifndef PX_CONVEX_MESH_DESC_H
30#define PX_CONVEX_MESH_DESC_H
35#include "foundation/PxVec3.h"
36#include "foundation/PxFlags.h"
37#include "common/PxCoreUtilityTypes.h"
38#include "geometry/PxConvexMesh.h"
259: vertexLimit(255), polygonLimit(255), quantizedCount(255), sdfDesc(NULL)
Descriptor class for #PxConvexMesh.
Definition PxConvexMeshDesc.h:156
PxConvexFlags flags
Flags bits, combined from values of the enum ::PxConvexFlag.
Definition PxConvexMeshDesc.h:193
PX_INLINE PxConvexMeshDesc()
constructor sets to default.
Definition PxConvexMeshDesc.h:258
PxU16 vertexLimit
Limits the number of vertices of the result convex mesh. Hard maximum limit is 255 and minimum limit ...
Definition PxConvexMeshDesc.h:209
PX_INLINE void setToDefault()
(re)sets the structure to the default.
Definition PxConvexMeshDesc.h:264
PxU16 quantizedCount
Maximum number of vertices after quantization. The quantization is done during the vertex cleaning ph...
Definition PxConvexMeshDesc.h:231
PxSDFDesc * sdfDesc
SDF descriptor. When this descriptor is set, signed distance field is calculated for this convex mesh...
Definition PxConvexMeshDesc.h:238
PX_INLINE bool isValid() const
Returns true if the descriptor is valid.
Definition PxConvexMeshDesc.h:269
PxBoundedData indices
Polygon indices data in PxBoundedData format.
Definition PxConvexMeshDesc.h:186
PxBoundedData polygons
Polygons data in PxBoundedData format.
Definition PxConvexMeshDesc.h:174
PxU16 polygonLimit
Limits the number of polygons of the result convex mesh. Hard maximum limit is 255 and minimum limit ...
Definition PxConvexMeshDesc.h:220
PxBoundedData points
Vertex positions data in PxBoundedData format.
Definition PxConvexMeshDesc.h:164
Container for bitfield flag variables associated with a specific enum type.
Definition PxFlags.h:73
A structure describing signed distance field for mesh.
Definition PxSDFDesc.h:70
PX_INLINE bool isValid() const
Returns true if the descriptor is valid.
Definition PxSDFDesc.h:175
3 Element vector class.
Definition PxVec3.h:50
#define PX_INLINE
Definition PxPreprocessor.h:320
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
PxFlags< PxConvexFlag::Enum, PxU16 > PxConvexFlags
collection of set bits defined in PxConvexFlag.
Definition PxConvexMeshDesc.h:143
Definition PxCoreUtilityTypes.h:96
Flags which describe the format and behavior of a convex mesh.
Definition PxConvexMeshDesc.h:49
Enum
Definition PxConvexMeshDesc.h:51
@ eCOMPUTE_CONVEX
Definition PxConvexMeshDesc.h:66
@ ePLANE_SHIFTING
Enables plane shifting vertex limit algorithm.
Definition PxConvexMeshDesc.h:113
@ eSHIFT_VERTICES
Convex hull input vertices are shifted to be around origin to provide better computation stability....
Definition PxConvexMeshDesc.h:134
@ eDISABLE_MESH_VALIDATION
Disables the convex mesh validation to speed-up hull creation. Please use separate validation functio...
Definition PxConvexMeshDesc.h:94
@ eFAST_INERTIA_COMPUTATION
Inertia tensor computation is faster using SIMD code, but the precision is lower, which may result in...
Definition PxConvexMeshDesc.h:119
@ e16_BIT_INDICES
Definition PxConvexMeshDesc.h:57
@ eCHECK_ZERO_AREA_TRIANGLES
Checks and removes almost zero-area triangles during convex hull computation. The rejected area size ...
Definition PxConvexMeshDesc.h:76
@ eQUANTIZE_INPUT
Quantizes the input vertices using the k-means clustering.
Definition PxConvexMeshDesc.h:85
@ eGPU_COMPATIBLE
Convex hulls are created with respect to GPU simulation limitations. Vertex limit and polygon limit i...
Definition PxConvexMeshDesc.h:126
Polygon data.
Definition PxConvexMesh.h:50
PxU32 stride
The offset in bytes between consecutive samples in the data.
Definition PxCoreUtilityTypes.h:51