pub unsafe extern "C" fn phys_PxValidateTriangleMesh(
    params: *const PxCookingParams,
    desc: *const PxTriangleMeshDesc
) -> bool
Expand description

Verifies if the triangle mesh is valid. Prints an error message for each inconsistency found.

The following conditions are true for a valid triangle mesh:

  1. There are no duplicate vertices (within specified vertexWeldTolerance. See PxCookingParams::meshWeldTolerance)
  2. There are no large triangles (within specified PxTolerancesScale.)

true if all the validity conditions hold, false otherwise.