mesh-examples/12-14-mesh/Me812.mesh.json
Sources
- CGAL PMP `PMP.non_manifold_vertices` Branch 3 (*visited_umbrella_detection*: `if(visited.find(hf) != visited.end()) continue
- `)
- `MESH_HEAL_COVERAGE.md`.
Description
Pinch vertex hub=(0,0,0) with THREE disconnected umbrella sectors: Sector A (t0=(hub,a0,a1)), Sector B (t1=(hub,b0,b1)), Sector C (t2=(hub,c0,c1)). All hub edges are border (n=1 each). The algorithm iterates halfedges_around_target(hub) in the outer loop. After enumerating Sectors A, B, and C (adding their halfedges to visited), the outer loop re-encounters halfedges from already-visited sectors. Branch 3 fires: visited.find(hf) succeeds, and the algorithm skips the sector (continue). The 3-sector configuration ensures Branch 3 is exercised at least twice (re-encounter of A and B after C is enumerated). Euler: V=7, E=9, F=3, chi=1.
Reproducer recipe
hub=(0,0,0); a0=(1,1,0),a1=(2,0,0); b0=(-1,1,0),b1=(-2,0,0); c0=(0,-1,1),c1=(0,-1,-1); t0=(hub,a0,a1), t1=(hub,b0,b1), t2=(hub,c0,c1); all hub edges n=1; outer edges n=1; assert_vertex_fan_disconnected(hub); cross-sector vertex_pair_no_shared_triangle assertions; euler V=7,E=9,F=3,chi=1.
Expected kernel behavior
Branch 3 fires (at least twice) when outer halfedge-around-target loop re-encounters halfedges from already-enumerated Sectors A and B after Sector C is processed; visited.find() returns end() for new sector, non-end() for visited sectors triggering the skip.
Expected validation
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1{ 2 "vertices": [ 3 [ 4 3.0, 5 0.0, 6 0.0 7 ], 8 [ 9 0.927051, 10 2.85317, 11 0.0 12 ], 13 [ 14 -2.427051, 15 1.763356, 16 0.0 17 ], 18 [ 19 -2.427051, 20 -1.763356, 21 0.0 22 ], 23 [ 24 0.927051, 25 -2.85317, 26 0.0 27 ], 28 [ 29 1.0, 30 0.0, 31 0.0 32 ], 33 [ 34 0.309017, 35 0.951057, 36 0.0 37 ], 38 [ 39 -0.809017, 40 0.587785, 41 0.0 42 ], 43 [ 44 -0.809017, 45 -0.587785, 46 0.0 47 ], 48 [ 49 0.309017, 50 -0.951057, 51 0.0 52 ] 53 ], 54 "triangles": [ 55 [ 56 0, 57 1, 58 6 59 ], 60 [ 61 0, 62 6, 63 5 64 ], 65 [ 66 1, 67 2, 68 7 69 ], 70 [ 71 1, 72 7, 73 6 74 ], 75 [ 76 2, 77 3, 78 8 79 ], 80 [ 81 2, 82 8, 83 7 84 ], 85 [ 86 3, 87 4, 88 9 89 ], 90 [ 91 3, 92 9, 93 8 94 ], 95 [ 96 4, 97 0, 98 5 99 ], 100 [ 101 4, 102 5, 103 9 104 ] 105 ], 106 "metadata": { 107 "id": "Me812", 108 "schema_version": 0, 109 "defect_class": "star_triangulate_hole_barycenter_computation", 110 "title": "StarTriangulateHole_barycenter_computation: 5-vertex hole; np=np+(*v) accumulates 5 boundary vertices for barycenter (Branch 3)", 111 "assertions": [ 112 { 113 "kind": "edge_shared_by_n_triangles", 114 "edge": [ 115 5, 116 6 117 ], 118 "n": 1 119 }, 120 { 121 "kind": "edge_shared_by_n_triangles", 122 "edge": [ 123 6, 124 7 125 ], 126 "n": 1 127 }, 128 { 129 "kind": "edge_shared_by_n_triangles", 130 "edge": [ 131 7, 132 8 133 ], 134 "n": 1 135 }, 136 { 137 "kind": "edge_shared_by_n_triangles", 138 "edge": [ 139 8, 140 9 141 ], 142 "n": 1 143 }, 144 { 145 "kind": "edge_shared_by_n_triangles", 146 "edge": [ 147 5, 148 9 149 ], 150 "n": 1 151 }, 152 { 153 "kind": "edge_shared_by_n_triangles", 154 "edge": [ 155 0, 156 5 157 ], 158 "n": 2 159 }, 160 { 161 "kind": "edge_shared_by_n_triangles", 162 "edge": [ 163 1, 164 6 165 ], 166 "n": 2 167 }, 168 { 169 "kind": "edge_shared_by_n_triangles", 170 "edge": [ 171 2, 172 7 173 ], 174 "n": 2 175 }, 176 { 177 "kind": "edge_shared_by_n_triangles", 178 "edge": [ 179 3, 180 8 181 ], 182 "n": 2 183 }, 184 { 185 "kind": "edge_shared_by_n_triangles", 186 "edge": [ 187 4, 188 9 189 ], 190 "n": 2 191 }, 192 { 193 "kind": "edge_shared_by_n_triangles", 194 "edge": [ 195 0, 196 1 197 ], 198 "n": 1 199 }, 200 { 201 "kind": "edge_shared_by_n_triangles", 202 "edge": [ 203 1, 204 2 205 ], 206 "n": 1 207 }, 208 { 209 "kind": "edge_shared_by_n_triangles", 210 "edge": [ 211 2, 212 3 213 ], 214 "n": 1 215 }, 216 { 217 "kind": "edge_shared_by_n_triangles", 218 "edge": [ 219 3, 220 4 221 ], 222 "n": 1 223 }, 224 { 225 "kind": "edge_shared_by_n_triangles", 226 "edge": [ 227 0, 228 4 229 ], 230 "n": 1 231 }, 232 { 233 "kind": "euler_characteristic", 234 "v": 10, 235 "e": 20, 236 "f": 10, 237 "chi": 0 238 } 239 ] 240 } 241}