mesh-examples/12-14-mesh/Me493.mesh.json
Sources
- CGAL PMP `PMP.internal.sanitize_candidates` Branch 4 (*interval_overlap_detection*: `if((second_left < first_left && second_right > first_left && second_right < first_right) || …)`)
- `MESH_HEAL_COVERAGE.md`.
Description
Five triangles (three cell + two bridge) with a single boundary cycle containing three topologically distinct vertices p0,p1,p2 all at (1,0,0). In the sorted halfedge array they land at consecutive positions i,i+1,i+2. detect_identical_mergeable_vertices creates Group A={p0,p1} (range [i,i+1]) and Group B={p1,p2} (range [i+1,i+2]). The ranges share index i+1 → overlap condition fires → Branch 4: one group is erased. Top vertices q0=(0,1,0),q1=(2,1,0),q2=(4,1,0),q3=(6,1,0); interior edges (q0,q1),(q1,q2),(q0,q2),(q2,q3) n=2; seven outer edges n=1. Euler: V=7, E=11, F=5, chi=1.
Reproducer recipe
q0=(0,1,0),q1=(2,1,0),q2=(4,1,0),q3=(6,1,0); p0=p1=p2=(1,0,0) (distinct indices); t0=(q0,p0,q1), t1=(q1,p1,q2), t2=(q2,p2,q3), t3=(q0,q1,q2), t4=(q0,q2,q3); vertex_pair assertions for all 3 pairs; euler V=7,E=11,F=5,chi=1.
Expected kernel behavior
Branch 4 fires; overlapping groups detected; one group erased; sanitize_candidates recurses (Branch 5 fires next).
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": "Me493", 68 "schema_version": 0, 69 "defect_class": "near_coincident_vertex", 70 "title": "sanitize_candidates interval_overlap_detection: three coincident boundary vertices p0==p1==p2 at (1,0,0) produce overlapping group index ranges; erase triggered (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}