mesh-examples/12-14-mesh/Me442.mesh.json
Sources
- MeshFix `checkAndRepair::removeSmallestComponents@L780` Branch 3 (*ADJACENT_TRIANGLE_T2*: `if (t2 != NULL && !IS_BIT(t2, 5)) { l.appendHead(t2)
- SET_BIT(t2,5)
- }`)
- `MESH_HEAL_COVERAGE.md`.
Description
Two disconnected components: component A is a 3-triangle fan around apex v0 (t0=(v0,v1,v2), t1=(v0,v2,v3), t2=(v0,v3,v4)); component B is an isolated triangle (v5,v6,v7, face 3). BFS exercises the t2-slot adjacency when the middle fan triangle finds its t2 neighbor unvisited. Interior fan edges at (v0,v2) and (v0,v3) are each shared by 2 triangles.
Reproducer recipe
v0=(0,0,0) apex, v1=(1,0,0), v2=(0.5,1,0), v3=(-0.5,1,0), v4=(-1,0,0); t0=(v0,v1,v2), t1=(v0,v2,v3), t2=(v0,v3,v4); v5=(10,0,0), v6=(11,0,0), v7=(10.5,1,0); t3=(v5,v6,v7).
Expected kernel behavior
Branch 3 fires for t2-slot neighbor; component A (3 triangles) becomes biggest; component B (1 triangle) is removed.
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.5, 15 1.0, 16 0.0 17 ], 18 [ 19 -0.5, 20 1.0, 21 0.0 22 ], 23 [ 24 -1.0, 25 0.0, 26 0.0 27 ], 28 [ 29 10.0, 30 0.0, 31 0.0 32 ], 33 [ 34 11.0, 35 0.0, 36 0.0 37 ], 38 [ 39 10.5, 40 1.0, 41 0.0 42 ] 43 ], 44 "triangles": [ 45 [ 46 0, 47 1, 48 2 49 ], 50 [ 51 0, 52 2, 53 3 54 ], 55 [ 56 0, 57 3, 58 4 59 ], 60 [ 61 5, 62 6, 63 7 64 ] 65 ], 66 "metadata": { 67 "id": "Me442", 68 "schema_version": 0, 69 "defect_class": "disconnected_components", 70 "title": "removeSmallestComponents adjacent_t2: BFS visits t2 neighbor; fan mesh with 3+1 triangles", 71 "assertions": [ 72 { 73 "kind": "edge_shared_by_n_triangles", 74 "edge": [ 75 0, 76 2 77 ], 78 "n": 2 79 }, 80 { 81 "kind": "edge_shared_by_n_triangles", 82 "edge": [ 83 0, 84 3 85 ], 86 "n": 2 87 }, 88 { 89 "kind": "triangle_not_reachable_from", 90 "target": 3, 91 "source": 0 92 }, 93 { 94 "kind": "edge_shared_by_n_triangles", 95 "edge": [ 96 1, 97 2 98 ], 99 "n": 1 100 }, 101 { 102 "kind": "edge_shared_by_n_triangles", 103 "edge": [ 104 3, 105 4 106 ], 107 "n": 1 108 } 109 ] 110 } 111}