mesh-examples/12-14-mesh/Me444.mesh.json
Sources
- MeshFix `checkAndRepair::removeSmallestComponents@L780` Branch 5 (*MULTIPLE_COMPONENTS_FOUND*: `if (gnt > nt) { gnt = nt
- biggest = n
- }`)
- `MESH_HEAL_COVERAGE.md`.
Description
Three mutually disconnected components of strictly increasing triangle counts: A (1 triangle at origin), B (3-triangle strip near x=5), C (5-triangle patch near x=15). BFS sweeps update `biggest` from A→B then B→C, firing Branch 5 twice. Final `biggest` is the 5-triangle component C; components A and B are removed.
Reproducer recipe
Component A: t0 single triangle. Component B: v3-v7, t1-t3 strip, interior edges n=2. Component C: v8-v13, t4-t8 patch, interior edges n=2. All three assert_triangle_not_reachable_from pairwise.
Expected kernel behavior
Branch 5 fires twice (gnt: 1→3→5); component C is final biggest; A and B removed; Branch 7 fires post-removal.
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 5.0, 20 0.0, 21 0.0 22 ], 23 [ 24 6.0, 25 0.0, 26 0.0 27 ], 28 [ 29 5.5, 30 1.0, 31 0.0 32 ], 33 [ 34 7.0, 35 0.0, 36 0.0 37 ], 38 [ 39 6.5, 40 1.0, 41 0.0 42 ], 43 [ 44 15.0, 45 0.0, 46 0.0 47 ], 48 [ 49 16.0, 50 0.0, 51 0.0 52 ], 53 [ 54 17.0, 55 0.0, 56 0.0 57 ], 58 [ 59 15.5, 60 1.0, 61 0.0 62 ], 63 [ 64 16.5, 65 1.0, 66 0.0 67 ], 68 [ 69 16.0, 70 2.0, 71 0.0 72 ] 73 ], 74 "triangles": [ 75 [ 76 0, 77 1, 78 2 79 ], 80 [ 81 3, 82 4, 83 5 84 ], 85 [ 86 4, 87 6, 88 5 89 ], 90 [ 91 5, 92 6, 93 7 94 ], 95 [ 96 8, 97 9, 98 11 99 ], 100 [ 101 9, 102 12, 103 11 104 ], 105 [ 106 9, 107 10, 108 12 109 ], 110 [ 111 8, 112 11, 113 10 114 ], 115 [ 116 11, 117 12, 118 13 119 ] 120 ], 121 "metadata": { 122 "id": "Me444", 123 "schema_version": 0, 124 "defect_class": "disconnected_components", 125 "title": "removeSmallestComponents multiple_components: 3-component mesh (1+3+5 triangles); biggest updated twice", 126 "assertions": [ 127 { 128 "kind": "triangle_not_reachable_from", 129 "target": 1, 130 "source": 0 131 }, 132 { 133 "kind": "triangle_not_reachable_from", 134 "target": 4, 135 "source": 0 136 }, 137 { 138 "kind": "triangle_not_reachable_from", 139 "target": 4, 140 "source": 1 141 }, 142 { 143 "kind": "edge_shared_by_n_triangles", 144 "edge": [ 145 4, 146 5 147 ], 148 "n": 2 149 }, 150 { 151 "kind": "edge_shared_by_n_triangles", 152 "edge": [ 153 5, 154 6 155 ], 156 "n": 2 157 }, 158 { 159 "kind": "edge_shared_by_n_triangles", 160 "edge": [ 161 9, 162 11 163 ], 164 "n": 2 165 }, 166 { 167 "kind": "edge_shared_by_n_triangles", 168 "edge": [ 169 9, 170 12 171 ], 172 "n": 2 173 }, 174 { 175 "kind": "edge_shared_by_n_triangles", 176 "edge": [ 177 11, 178 12 179 ], 180 "n": 2 181 } 182 ] 183 } 184}