mesh-examples/12-14-mesh/Me450.mesh.json
Sources
- MeshFix `checkAndRepair::removeSmallestComponents@L861` Branch 1 (*EMPTY_MESH*: `if (T.numels() == 0) return 0
- `)
- `MESH_HEAL_COVERAGE.md`.
Description
A single isolated vertex with no triangles. T.numels() == 0 so the area-based removeSmallestComponents exits immediately at line 869 without entering BFS or area accumulation. This guard branch prevents operating on an empty mesh.
Reproducer recipe
v0=(0,0,0); no triangles; assert_isolated_vertex(v0).
Expected kernel behavior
Branch 1 fires; T.numels() == 0 → function returns 0 immediately without any component traversal.
Expected validation
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1{ 2 "vertices": [ 3 [ 4 0.0, 5 0.0, 6 0.0 7 ] 8 ], 9 "triangles": [], 10 "metadata": { 11 "id": "Me450", 12 "schema_version": 0, 13 "defect_class": "disconnected_components", 14 "title": "removeSmallestComponents area EMPTY_MESH: T.numels()==0 \u2192 return 0; no triangles to area-filter", 15 "assertions": [ 16 { 17 "kind": "isolated_vertex", 18 "vertex": 0 19 } 20 ] 21 } 22}