PxConvexMeshCookingResult

Defined in include/cooking/PxCooking.h

struct PxConvexMeshCookingResult

Result from convex cooking.

Public Types

enum Enum

Values:

enumerator eSUCCESS

Convex mesh cooking succeeded.

enumerator eZERO_AREA_TEST_FAILED

Convex mesh cooking failed, algorithm couldn’t find 4 initial vertices without a small triangle.

See also

PxCookingParams::areaTestEpsilon PxConvexFlag::eCHECK_ZERO_AREA_TRIANGLES

enumerator ePOLYGONS_LIMIT_REACHED

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.

See also

PxConvexFlag::eINFLATE_CONVEX PxConvexFlag::eQUANTIZE_INPUT

enumerator eFAILURE

Something unrecoverable happened.

Check the error stream to find out what.

enumerator eNON_GPU_COMPATIBLE

Convex mesh cooking succeeded, but the algorithm could not make the mesh GPU compatible because the in-sphere radius is more than 100x smaller than the largest extent.

Collision detection for any pair involving this convex mesh will fall back to CPU.