closed_or_hairline

Function closed_or_hairline 

Source
pub fn closed_or_hairline(mesh: &Mesh) -> bool
Expand description

Closed-surface audit with a HAIRLINE tolerance: the surface passes when every unpaired directed edge (0.1 mm grid) is collinearly COVERED by unpaired edges of the opposite net sign, the signature of two adjacent faces subdividing a shared boundary line differently (a T-junction chain, an invisible sub-grid gap), NOT of a missing surface. A genuine hole leaves a boundary loop whose edges have nothing opposite along them and fails. The exact kernel’s own output is routinely NOT even undirected-watertight on these hosts, so this gate is still far stricter than the status quo.