mesh-examples/12-14-mesh/Me403.mesh.json
Sources
- CGAL PMP `PMP.internal.detect_identical_mergeable_vertices` Branch 4 (*consecutive_identical_collection*: `while(++i != nbv && get(vpm,target(cycle_hedges[i],mesh))==…) { …push_back(i)
- }`)
- `MESH_HEAL_COVERAGE.md`.
Description
Five triangles (three cell triangles + two bridge triangles) forming a single open disk with boundary cycle visiting p0,q0,p1,q1,p2,q2,p3. Three coincident boundary vertices q0,q1,q2 (indices 4,5,6) all at (1,0,0); no two share a triangle. After sort, halfedges targeting q0,q1,q2 are consecutive; Branch 3 opens group {q0,q1} and Branch 4's inner while fires once to push q2 (group size → 3). Interior edges (p0,p1),(p1,p2),(p0,p2),(p2,p3) n=2; seven outer edges n=1. Euler: V=7, E=11, F=5, chi=1.
Reproducer recipe
p0=(0,1,0),p1=(2,1,0),p2=(4,1,0),p3=(6,1,0); q0=q1=q2=(1,0,0) distinct indices; t0=(p0,q0,p1), t1=(p1,q1,p2), t2=(p2,q2,p3), t3=(p0,p1,p2), t4=(p0,p2,p3); no two q's share a triangle; euler V=7,E=11,F=5,chi=1.
Expected kernel behavior
Branch 4 fires once (extending the group from size 2 to 3); inner while exits when the next halfedge target differs from q2's coordinate.
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 1.0, 6 0.0 7 ], 8 [ 9 2.0, 10 1.0, 11 0.0 12 ], 13 [ 14 4.0, 15 1.0, 16 0.0 17 ], 18 [ 19 6.0, 20 1.0, 21 0.0 22 ], 23 [ 24 1.0, 25 0.0, 26 0.0 27 ], 28 [ 29 1.0, 30 0.0, 31 0.0 32 ], 33 [ 34 1.0, 35 0.0, 36 0.0 37 ] 38 ], 39 "triangles": [ 40 [ 41 0, 42 4, 43 1 44 ], 45 [ 46 1, 47 5, 48 2 49 ], 50 [ 51 2, 52 6, 53 3 54 ], 55 [ 56 0, 57 1, 58 2 59 ], 60 [ 61 0, 62 2, 63 3 64 ] 65 ], 66 "metadata": { 67 "id": "Me403", 68 "schema_version": 0, 69 "defect_class": "near_coincident_vertex", 70 "title": "detect_identical_mergeable_vertices consecutive_identical_collection: q0==q1==q2 at (1,0,0), no two share a triangle; inner while extends group to size 3 (Branch 4)", 71 "assertions": [ 72 { 73 "kind": "edge_shared_by_n_triangles", 74 "edge": [ 75 0, 76 1 77 ], 78 "n": 2 79 }, 80 { 81 "kind": "edge_shared_by_n_triangles", 82 "edge": [ 83 1, 84 2 85 ], 86 "n": 2 87 }, 88 { 89 "kind": "edge_shared_by_n_triangles", 90 "edge": [ 91 0, 92 2 93 ], 94 "n": 2 95 }, 96 { 97 "kind": "edge_shared_by_n_triangles", 98 "edge": [ 99 2, 100 3 101 ], 102 "n": 2 103 }, 104 { 105 "kind": "edge_shared_by_n_triangles", 106 "edge": [ 107 0, 108 4 109 ], 110 "n": 1 111 }, 112 { 113 "kind": "edge_shared_by_n_triangles", 114 "edge": [ 115 1, 116 4 117 ], 118 "n": 1 119 }, 120 { 121 "kind": "edge_shared_by_n_triangles", 122 "edge": [ 123 1, 124 5 125 ], 126 "n": 1 127 }, 128 { 129 "kind": "edge_shared_by_n_triangles", 130 "edge": [ 131 2, 132 5 133 ], 134 "n": 1 135 }, 136 { 137 "kind": "edge_shared_by_n_triangles", 138 "edge": [ 139 2, 140 6 141 ], 142 "n": 1 143 }, 144 { 145 "kind": "edge_shared_by_n_triangles", 146 "edge": [ 147 3, 148 6 149 ], 150 "n": 1 151 }, 152 { 153 "kind": "edge_shared_by_n_triangles", 154 "edge": [ 155 0, 156 3 157 ], 158 "n": 1 159 }, 160 { 161 "kind": "vertex_pair_distance_lt", 162 "pair": [ 163 4, 164 5 165 ], 166 "lt": 1e-09 167 }, 168 { 169 "kind": "vertex_pair_distance_lt", 170 "pair": [ 171 4, 172 6 173 ], 174 "lt": 1e-09 175 }, 176 { 177 "kind": "vertex_pair_distance_lt", 178 "pair": [ 179 5, 180 6 181 ], 182 "lt": 1e-09 183 }, 184 { 185 "kind": "vertex_pair_no_shared_triangle", 186 "pair": [ 187 4, 188 5 189 ] 190 }, 191 { 192 "kind": "vertex_pair_no_shared_triangle", 193 "pair": [ 194 4, 195 6 196 ] 197 }, 198 { 199 "kind": "vertex_pair_no_shared_triangle", 200 "pair": [ 201 5, 202 6 203 ] 204 }, 205 { 206 "kind": "euler_characteristic", 207 "v": 7, 208 "e": 11, 209 "f": 5, 210 "chi": 1 211 } 212 ] 213 } 214}