mesh-examples/12-14-mesh/Me440.mesh.json
Sources
- MeshFix `checkAndRepair::removeSmallestComponents@L780` Branch 1 (*EMPTY_MESH*: `if (T.numels() == 0) return 0
- `)
- `MESH_HEAL_COVERAGE.md`.
Description
Single-triangle mesh (3 vertices, 1 triangle, area=0.5). The mesh is non-empty so it does NOT trigger the Branch 1 early return — this is the minimal contrast fixture demonstrating the boundary condition. A healer reading a mesh with 0 triangles would return 0 immediately; with 1 triangle, BFS begins. All three edges are boundary (n=1).
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(0,1,0); t0=(v0,v1,v2); single triangle area=0.5; all edges n=1.
Expected kernel behavior
Branch 1 does NOT fire (T.numels()==1); BFS traversal begins; single component found; no removal occurs.
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 1.0, 10 0.0, 11 0.0 12 ], 13 [ 14 0.0, 15 1.0, 16 0.0 17 ] 18 ], 19 "triangles": [ 20 [ 21 0, 22 1, 23 2 24 ] 25 ], 26 "metadata": { 27 "id": "Me440", 28 "schema_version": 0, 29 "defect_class": "disconnected_components", 30 "title": "removeSmallestComponents empty_mesh: single-triangle contrast for T.numels()==0 early-return branch", 31 "assertions": [ 32 { 33 "kind": "triangle_area_lt", 34 "triangle": 0, 35 "lt": 1.0 36 }, 37 { 38 "kind": "edge_shared_by_n_triangles", 39 "edge": [ 40 0, 41 1 42 ], 43 "n": 1 44 }, 45 { 46 "kind": "edge_shared_by_n_triangles", 47 "edge": [ 48 1, 49 2 50 ], 51 "n": 1 52 }, 53 { 54 "kind": "edge_shared_by_n_triangles", 55 "edge": [ 56 0, 57 2 58 ], 59 "n": 1 60 } 61 ] 62 } 63}