mesh-examples/12-14-mesh/Me404.mesh.json
Sources
- CGAL PMP `PMP.internal.detect_identical_mergeable_vertices` Branch 5 (*group_break*: `else { ++i
- break
- }`)
- `MESH_HEAL_COVERAGE.md`.
Description
Four triangles (two left-sector, two right-sector) with a hexagonal boundary cycle. One coincident pair b1 and b3 both at (1,0,0), each in a different triangle with no shared triangle. In the sorted boundary halfedge array, b1 and b3 are adjacent, surrounded by distinct-coordinate neighbors (b0 at (0,0,0) and b4 at (2,2,0)). After the group {b1,b3} is collected, the inner while checks the next halfedge target (different coordinate) → else branch fires, i is incremented, and while exits (Branch 5). Interior edges (b0,b5),(b2,b4),(b2,b5) n=2; six outer edges n=1. Euler: V=6, E=9, F=4, chi=1.
Reproducer recipe
b0=(0,0,0), b1=(1,0,0), b2=(2,0,0), b3=(1,0,0) [=b1], b4=(2,2,0), b5=(0,2,0); t0=(b0,b1,b5), t1=(b2,b4,b5), t2=(b2,b3,b4), t3=(b0,b2,b5); interior edges n=2; outer edges n=1; vertex_pair_distance_lt(b1,b3,1e-9); vertex_pair_no_shared_triangle(b1,b3); euler V=6,E=9,F=4,chi=1.
Expected kernel behavior
Branch 5 fires once; inner while exits when next target differs; group remains at size 2 (b1,b3).
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 2.0, 15 0.0, 16 0.0 17 ], 18 [ 19 1.0, 20 0.0, 21 0.0 22 ], 23 [ 24 2.0, 25 2.0, 26 0.0 27 ], 28 [ 29 0.0, 30 2.0, 31 0.0 32 ] 33 ], 34 "triangles": [ 35 [ 36 0, 37 1, 38 5 39 ], 40 [ 41 2, 42 4, 43 5 44 ], 45 [ 46 2, 47 3, 48 4 49 ], 50 [ 51 0, 52 2, 53 5 54 ] 55 ], 56 "metadata": { 57 "id": "Me404", 58 "schema_version": 0, 59 "defect_class": "near_coincident_vertex", 60 "title": "detect_identical_mergeable_vertices group_break: coincident b1==b3 at (1,0,0) bounded by distinct neighbors; inner while exits via else branch (Branch 5)", 61 "assertions": [ 62 { 63 "kind": "edge_shared_by_n_triangles", 64 "edge": [ 65 0, 66 5 67 ], 68 "n": 2 69 }, 70 { 71 "kind": "edge_shared_by_n_triangles", 72 "edge": [ 73 2, 74 4 75 ], 76 "n": 2 77 }, 78 { 79 "kind": "edge_shared_by_n_triangles", 80 "edge": [ 81 2, 82 5 83 ], 84 "n": 2 85 }, 86 { 87 "kind": "edge_shared_by_n_triangles", 88 "edge": [ 89 0, 90 1 91 ], 92 "n": 1 93 }, 94 { 95 "kind": "edge_shared_by_n_triangles", 96 "edge": [ 97 1, 98 5 99 ], 100 "n": 1 101 }, 102 { 103 "kind": "edge_shared_by_n_triangles", 104 "edge": [ 105 4, 106 5 107 ], 108 "n": 1 109 }, 110 { 111 "kind": "edge_shared_by_n_triangles", 112 "edge": [ 113 3, 114 4 115 ], 116 "n": 1 117 }, 118 { 119 "kind": "edge_shared_by_n_triangles", 120 "edge": [ 121 2, 122 3 123 ], 124 "n": 1 125 }, 126 { 127 "kind": "edge_shared_by_n_triangles", 128 "edge": [ 129 0, 130 2 131 ], 132 "n": 1 133 }, 134 { 135 "kind": "vertex_pair_distance_lt", 136 "pair": [ 137 1, 138 3 139 ], 140 "lt": 1e-09 141 }, 142 { 143 "kind": "vertex_pair_no_shared_triangle", 144 "pair": [ 145 1, 146 3 147 ] 148 }, 149 { 150 "kind": "euler_characteristic", 151 "v": 6, 152 "e": 9, 153 "f": 4, 154 "chi": 1 155 } 156 ] 157 } 158}