mesh-examples/12-14-mesh/Me443.mesh.json
Sources
- MeshFix `checkAndRepair::removeSmallestComponents@L780` Branch 4 (*ADJACENT_TRIANGLE_T3*: `if (t3 != NULL && !IS_BIT(t3, 5)) { l.appendHead(t3)
- SET_BIT(t3,5)
- }`)
- `MESH_HEAL_COVERAGE.md`.
Description
Two disconnected components: component A is a central triangle (v0,v1,v2) fully surrounded by three outer neighbors across each of its three edges. BFS starts from the center and fills all three adjacency slots (t1, t2, t3) with unvisited neighbors, exercising Branch 4 for the third slot. All three center edges are shared by 2 triangles. Component B is a single isolated triangle.
Reproducer recipe
v0=(0,0,0), v1=(2,0,0), v2=(1,2,0), v3=(1,-2,0), v4=(3,1.5,0), v5=(-1,1.5,0); t0=(v0,v1,v2) center, t1=(v1,v0,v3), t2=(v2,v1,v4), t3=(v0,v2,v5); v6=(10,0,0), v7=(11,0,0), v8=(10.5,1,0); t4=(v6,v7,v8).
Expected kernel behavior
Branch 4 fires for t3-slot neighbor; all 4 triangles of component A collected; 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 2.0, 10 0.0, 11 0.0 12 ], 13 [ 14 1.0, 15 2.0, 16 0.0 17 ], 18 [ 19 1.0, 20 -2.0, 21 0.0 22 ], 23 [ 24 3.0, 25 1.5, 26 0.0 27 ], 28 [ 29 -1.0, 30 1.5, 31 0.0 32 ], 33 [ 34 10.0, 35 0.0, 36 0.0 37 ], 38 [ 39 11.0, 40 0.0, 41 0.0 42 ], 43 [ 44 10.5, 45 1.0, 46 0.0 47 ] 48 ], 49 "triangles": [ 50 [ 51 0, 52 1, 53 2 54 ], 55 [ 56 1, 57 0, 58 3 59 ], 60 [ 61 2, 62 1, 63 4 64 ], 65 [ 66 0, 67 2, 68 5 69 ], 70 [ 71 6, 72 7, 73 8 74 ] 75 ], 76 "metadata": { 77 "id": "Me443", 78 "schema_version": 0, 79 "defect_class": "disconnected_components", 80 "title": "removeSmallestComponents adjacent_t3: BFS visits t3 neighbor; central triangle with all 3 neighbors unvisited", 81 "assertions": [ 82 { 83 "kind": "edge_shared_by_n_triangles", 84 "edge": [ 85 0, 86 1 87 ], 88 "n": 2 89 }, 90 { 91 "kind": "edge_shared_by_n_triangles", 92 "edge": [ 93 1, 94 2 95 ], 96 "n": 2 97 }, 98 { 99 "kind": "edge_shared_by_n_triangles", 100 "edge": [ 101 0, 102 2 103 ], 104 "n": 2 105 }, 106 { 107 "kind": "triangle_not_reachable_from", 108 "target": 4, 109 "source": 0 110 }, 111 { 112 "kind": "edge_shared_by_n_triangles", 113 "edge": [ 114 0, 115 3 116 ], 117 "n": 1 118 }, 119 { 120 "kind": "edge_shared_by_n_triangles", 121 "edge": [ 122 1, 123 3 124 ], 125 "n": 1 126 } 127 ] 128 } 129}