Function diagnose

Source
pub fn diagnose<M>(mesh: &M, tolerance: Tolerance) -> Diagnosis
where M: TriangleMeshView + ?Sized,
Expand description

Diagnose a triangle mesh, reporting every defect class it exhibits.

Defects are returned in a deterministic order: structural classes in the audit’s own order first, then self-intersecting pairs in sorted order. The result is empty exactly when the mesh is clean.