PxValidateConvexMesh

Defined in include/cooking/PxCooking.h

bool PxValidateConvexMesh(const physx::PxCookingParams &params, const physx::PxConvexMeshDesc &desc)

Verifies if the convex mesh is valid.

Prints an error message for each inconsistency found.

The convex mesh descriptor must contain an already created convex mesh - the vertices, indices and polygons must be provided.

See also

PxCookConvexMesh()

Note

This function should be used if PxConvexFlag::eDISABLE_MESH_VALIDATION is planned to be used in release builds.

Parameters
  • params[in] The cooking parameters

  • desc[in] The convex mesh descriptor to read the mesh from.

Returns

true if all the validity conditions hold, false otherwise.