pub fn edge_multiplicity_defects(mesh: &Mesh) -> EdgeMultiplicityDefectsExpand description
Count the EdgeMultiplicityDefects of mesh, keyed EXACTLY.
The closure verdicts snap vertices to a 0.1 mm grid, which is right for
them (two corners a hair apart should close) and wrong here: snapping merges
two distinct vertices closer than a cell into one key, and the moment two
distinct edges collapse onto one key their uses ADD, so two manifold
surfaces 0.03 mm apart would report a four-use edge that exists in neither.
For a REJECTION predicate that errs toward throwing away geometry that was
never wrong. So the keys are the vertex coordinates bit for bit, with -0.0
folded to 0.0 (one point). The cost is a miss, not a false positive: a
non-manifold edge whose endpoints differ in the last bit reads as two edges.
The kernel interns coincident corners, so a real shared edge in its output
is bit-identical at both ends.
Non-finite coordinates cannot reach here (every caller runs validate_mesh
first), so no NaN key can split a vertex from itself.