mesh-examples/12-14-mesh/Me445.mesh.json
Sources
- MeshFix `checkAndRepair::removeSmallestComponents@L780` Branch 6 (*NON_LARGEST_COMPONENT*: `if (((List *)n->data) != biggest) { ... unlink ... }`)
- `MESH_HEAL_COVERAGE.md`.
Description
Two disconnected components: component A is a single small triangle (v0,v1,v2) — the non-largest, marked for unlinking when Branch 6 fires; component B is a 5-triangle fan around apex v3=(10,0,0). The 1-vs-5 size differential makes it unambiguous which is `biggest`. Branch 6 fires for component A; cross-component vertices share no triangle.
Reproducer recipe
Component A: v0=(0,0,0), v1=(0.5,0,0), v2=(0,0.5,0), t0=(v0,v1,v2), all edges n=1. Component B: v3=(10,0,0) apex, v4-v8 ring; t1-t5 fan; interior spokes n=2. assert_vertex_pair_no_shared_triangle(v0,v3).
Expected kernel behavior
Branch 6 fires for component A; Branch 7 fires post-removal (nt=1); dirty flags set; removeUnlinkedElements called.
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 0.5, 10 0.0, 11 0.0 12 ], 13 [ 14 0.0, 15 0.5, 16 0.0 17 ], 18 [ 19 10.0, 20 0.0, 21 0.0 22 ], 23 [ 24 12.0, 25 0.0, 26 0.0 27 ], 28 [ 29 11.5, 30 1.5, 31 0.0 32 ], 33 [ 34 10.5, 35 2.0, 36 0.0 37 ], 38 [ 39 9.5, 40 1.5, 41 0.0 42 ], 43 [ 44 8.5, 45 0.5, 46 0.0 47 ] 48 ], 49 "triangles": [ 50 [ 51 0, 52 1, 53 2 54 ], 55 [ 56 3, 57 4, 58 5 59 ], 60 [ 61 3, 62 5, 63 6 64 ], 65 [ 66 3, 67 6, 68 7 69 ], 70 [ 71 3, 72 7, 73 8 74 ], 75 [ 76 3, 77 8, 78 4 79 ] 80 ], 81 "metadata": { 82 "id": "Me445", 83 "schema_version": 0, 84 "defect_class": "disconnected_components", 85 "title": "removeSmallestComponents non_largest: 2-component mesh (1 vs 5 triangles); smaller component marked for removal", 86 "assertions": [ 87 { 88 "kind": "triangle_not_reachable_from", 89 "target": 1, 90 "source": 0 91 }, 92 { 93 "kind": "edge_shared_by_n_triangles", 94 "edge": [ 95 0, 96 1 97 ], 98 "n": 1 99 }, 100 { 101 "kind": "edge_shared_by_n_triangles", 102 "edge": [ 103 1, 104 2 105 ], 106 "n": 1 107 }, 108 { 109 "kind": "edge_shared_by_n_triangles", 110 "edge": [ 111 0, 112 2 113 ], 114 "n": 1 115 }, 116 { 117 "kind": "edge_shared_by_n_triangles", 118 "edge": [ 119 3, 120 5 121 ], 122 "n": 2 123 }, 124 { 125 "kind": "edge_shared_by_n_triangles", 126 "edge": [ 127 3, 128 6 129 ], 130 "n": 2 131 }, 132 { 133 "kind": "edge_shared_by_n_triangles", 134 "edge": [ 135 3, 136 7 137 ], 138 "n": 2 139 }, 140 { 141 "kind": "edge_shared_by_n_triangles", 142 "edge": [ 143 3, 144 8 145 ], 146 "n": 2 147 }, 148 { 149 "kind": "vertex_pair_no_shared_triangle", 150 "pair": [ 151 0, 152 3 153 ] 154 } 155 ] 156 } 157}