mesh-examples/12-14-mesh/Me446.mesh.json
Sources
- MeshFix `checkAndRepair::removeSmallestComponents@L780` Branch 7 (*COMPONENTS_REMOVED*: `if (nt > 0) { d_boundaries = d_handles = d_shells = 1
- removeUnlinkedElements()
- }`)
- `MESH_HEAL_COVERAGE.md`.
Description
Two disconnected components: component A is a 2-triangle pair (t0,t1 sharing edge v1-v2) — the smaller, removed component; component B is a 6-triangle hexagonal fan around apex v4=(10,1,0). After BFS identifies B as `biggest`, Branch 6 fires for A; then Branch 7 fires (nt=1 > 0), setting dirty flags and calling removeUnlinkedElements(). Cross-component vertices share no triangle.
Reproducer recipe
Component A: v0-v3, t0=(v0,v1,v2), t1=(v1,v3,v2), edge(v1,v2) n=2. Component B: v4=(10,1,0) apex, v5-v10 outer ring; t2-t7 fan; spokes n=2. assert_triangle_not_reachable_from(t2,t0); assert_vertex_pair_no_shared_triangle(v0,v4).
Expected kernel behavior
Branch 7 fires post-removal (nt=1 > 0); d_boundaries=d_handles=d_shells=1; removeUnlinkedElements() invoked.
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 1.5, 20 1.0, 21 0.0 22 ], 23 [ 24 10.0, 25 1.0, 26 0.0 27 ], 28 [ 29 12.0, 30 1.0, 31 0.0 32 ], 33 [ 34 11.5, 35 2.5, 36 0.0 37 ], 38 [ 39 10.0, 40 3.0, 41 0.0 42 ], 43 [ 44 8.5, 45 2.5, 46 0.0 47 ], 48 [ 49 8.0, 50 1.0, 51 0.0 52 ], 53 [ 54 9.0, 55 -0.5, 56 0.0 57 ] 58 ], 59 "triangles": [ 60 [ 61 0, 62 1, 63 2 64 ], 65 [ 66 1, 67 3, 68 2 69 ], 70 [ 71 4, 72 5, 73 6 74 ], 75 [ 76 4, 77 6, 78 7 79 ], 80 [ 81 4, 82 7, 83 8 84 ], 85 [ 86 4, 87 8, 88 9 89 ], 90 [ 91 4, 92 9, 93 10 94 ], 95 [ 96 4, 97 10, 98 5 99 ] 100 ], 101 "metadata": { 102 "id": "Me446", 103 "schema_version": 0, 104 "defect_class": "disconnected_components", 105 "title": "removeSmallestComponents components_removed: 2-component mesh (2 vs 6 triangles); removal triggers dirty-flag branch", 106 "assertions": [ 107 { 108 "kind": "triangle_not_reachable_from", 109 "target": 2, 110 "source": 0 111 }, 112 { 113 "kind": "edge_shared_by_n_triangles", 114 "edge": [ 115 1, 116 2 117 ], 118 "n": 2 119 }, 120 { 121 "kind": "edge_shared_by_n_triangles", 122 "edge": [ 123 4, 124 6 125 ], 126 "n": 2 127 }, 128 { 129 "kind": "edge_shared_by_n_triangles", 130 "edge": [ 131 4, 132 7 133 ], 134 "n": 2 135 }, 136 { 137 "kind": "edge_shared_by_n_triangles", 138 "edge": [ 139 4, 140 8 141 ], 142 "n": 2 143 }, 144 { 145 "kind": "edge_shared_by_n_triangles", 146 "edge": [ 147 4, 148 9 149 ], 150 "n": 2 151 }, 152 { 153 "kind": "edge_shared_by_n_triangles", 154 "edge": [ 155 4, 156 10 157 ], 158 "n": 2 159 }, 160 { 161 "kind": "vertex_pair_no_shared_triangle", 162 "pair": [ 163 0, 164 4 165 ] 166 }, 167 { 168 "kind": "edge_shared_by_n_triangles", 169 "edge": [ 170 0, 171 1 172 ], 173 "n": 1 174 }, 175 { 176 "kind": "edge_shared_by_n_triangles", 177 "edge": [ 178 2, 179 3 180 ], 181 "n": 1 182 } 183 ] 184 } 185}