Function physx::cooking::validate_triangle_mesh
source · pub fn validate_triangle_mesh(
params: &PxCookingParams,
desc: &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.