Function physx_sys::phys_PxValidateTriangleMesh
source · 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:
- There are no duplicate vertices (within specified vertexWeldTolerance. See PxCookingParams::meshWeldTolerance)
- There are no large triangles (within specified PxTolerancesScale.)
true if all the validity conditions hold, false otherwise.