141 eWELD_VERTICES = 1 << 0,
151 eDISABLE_CLEAN_MESH = 1 << 1,
156 eDISABLE_ACTIVE_EDGES_PRECOMPUTE = 1 << 2,
163 eFORCE_32BIT_INDICES = 1 << 3
298 areaTestEpsilon (0.06f*sc.length*sc.length),
299 planeTolerance (0.0007f),
301 suppressTriangleMeshRemapTable (false),
302 buildTriangleAdjacencies (false),
303 buildGPUData (false),
305 meshPreprocessParams (0),
306 meshWeldTolerance (0.f),
323 virtual void release() = 0;
348 virtual bool platformMismatch()
const = 0;
559 physx::PxFoundation& foundation,
560 const physx::PxCookingParams& params);
Definition: GuContactBuffer.h:37
PxMidphaseDesc midphaseDesc
Controls the desired midphase desc structure for triangle meshes.
Definition: PxCooking.h:286
Descriptor class for PxTriangleMesh.
Definition: PxTriangleMeshDesc.h:54
PxFlags< PxMeshPreprocessingFlag::Enum, PxU32 > PxMeshPreprocessingFlags
Definition: PxCooking.h:167
Convex mesh cooking succeeded.
Definition: PxCooking.h:65
bool buildGPUData
When true, addigional information required for GPU-accelerated rigid body simulation is created...
Definition: PxCooking.h:244
Enum
Definition: PxCooking.h:136
Polygon data.
Definition: PxConvexMesh.h:51
#define PX_PHYSX_COOKING_API
Definition: Pxc.h:50
PxReal meshWeldTolerance
Mesh weld tolerance. If mesh welding is enabled, this controls the distance at which vertices are wel...
Definition: PxCooking.h:277
bool suppressTriangleMeshRemapTable
When true, the face remap table is not created. This saves a significant amount of memory...
Definition: PxCooking.h:229
Descriptor class for PxBVHStructure.
Definition: PxBVHStructureDesc.h:53
Structure describing parameters affecting midphase mesh structure.
Definition: PxMidphaseDesc.h:52
float PxReal
Definition: PxSimpleTypes.h:78
#define PX_C_EXPORT
Definition: Pxc.h:54
a triangle is too large for well-conditioned results. Tessellate the mesh for better behavior...
Definition: PxCooking.h:119
#define PX_CALL_CONV
Definition: PxPreprocessor.h:315
uint32_t PxU32
Definition: PxSimpleTypes.h:71
Descriptor class for PxHeightField.
Definition: PxHeightFieldDesc.h:54
Structure describing parameters affecting mesh cooking.
Definition: PxCooking.h:175
A triangle mesh, also called a 'polygon soup'.
Definition: PxTriangleMesh.h:126
bool buildTriangleAdjacencies
When true, the triangle adjacency information is created. You can get the adjacency triangles for a g...
Definition: PxCooking.h:237
PxTolerancesScale scale
Tolerance scale is used to check if cooked triangles are not too huge. This check will help with simu...
Definition: PxCooking.h:253
PX_C_EXPORT PX_PHYSX_COOKING_API physx::PxCooking *PX_CALL_CONV PxCreateCooking(physx::PxU32 version, physx::PxFoundation &foundation, const physx::PxCookingParams ¶ms)
Create an instance of the cooking interface.
A convex mesh.
Definition: PxConvexMesh.h:84
Enum
Definition: PxCooking.h:109
Convex mesh cooking succeeded, but the algorithm has reached the 255 polygons limit. The produced hull does not contain all input vertices. Try to simplify the input vertices or try to use the eINFLATE_CONVEX or the eQUANTIZE_INPUT flags.
Definition: PxCooking.h:81
Output stream class for I/O.
Definition: PxIO.h:114
float planeTolerance
Plane tolerance used in convex hull computation.
Definition: PxCooking.h:211
PxU8 mesh[sizeof(PxTriangleMeshGeometry)]
Definition: PxGeometryHelpers.h:221
Foundation SDK singleton class.
Definition: PxFoundation.h:51
PxU32 gaussMapLimit
Vertex limit beyond which additional acceleration structures are computed for each convex mesh...
Definition: PxCooking.h:295
Enum
Definition: PxCooking.h:60
float areaTestEpsilon
Zero-size area epsilon used in convex hull computation.
Definition: PxCooking.h:189
A height field class.
Definition: PxHeightField.h:85
Result from convex cooking.
Definition: PxCooking.h:58
Enumeration for convex mesh cooking algorithms.
Definition: PxCooking.h:91
virtual ~PxCooking()
Definition: PxCooking.h:534
PxCookingParams(const PxTolerancesScale &sc)
Definition: PxCooking.h:297
Result from triangle mesh cooking.
Definition: PxCooking.h:107
Definition: PxCooking.h:312
Convex mesh cooking failed, algorithm couldn't find 4 initial vertices without a small triangle...
Definition: PxCooking.h:72
Class to define the scale at which simulation runs. Most simulation tolerances are calculated in term...
Definition: PxTolerancesScale.h:56
PxConvexMeshCookingType::Enum convexMeshCookingType
Convex hull creation algorithm.
Definition: PxCooking.h:220
Abstract base class for an application defined memory allocator that can be used by the Nv library...
Definition: PxAllocatorCallback.h:52
Enum
Definition: PxCooking.h:93
Enum for the set of mesh pre-processing parameters.
Definition: PxCooking.h:134
PxMeshPreprocessingFlags meshPreprocessParams
Mesh pre-processing parameters. Used to control options like whether the mesh cooking performs vertex...
Definition: PxCooking.h:260
Descriptor class for PxConvexMesh.
Definition: PxConvexMeshDesc.h:155
Callback interface that permits PxCooking to insert a TriangleMesh, HeightfieldMesh or ConvexMesh dir...
Definition: PxPhysicsInsertionCallback.h:60
uint32_t PxU32
Definition: Px.h:48
Class representing the bounding volume hierarchy structure.
Definition: PxBVHStructure.h:57
3 Element vector class.
Definition: PxVec3.h:49
A structure describing a triangle mesh.
Definition: PxSimpleTriangleMesh.h:84