mesh-examples/12-14-mesh/Me495.mesh.json
Sources
- CGAL PMP `PMP.internal.sanitize_candidates` Branch 6 (*range_size_comparison*: `const std::size_t first_candidates_range = candidate_hedges_with_id[fr_id].back() - …front()
- … erase_id = (first_candidates_range <= second_candidates_range) ? sr_id : fr_id
- `)
- `MESH_HEAL_COVERAGE.md`.
Description
Five triangles (three cell + two bridge) with a boundary cycle containing three distinct vertices u0,u1,u2 all at (1,0,0). Sorted positions i,i+1,i+2 yield two overlapping groups: A=[i,i+1] (range=1) and B=[i+1,i+2] (range=1). The range comparison fires (Branch 6): first_candidates_range (1) <= second_candidates_range (1), so erase_id=sr_id (Group B is removed). This is the equal-range sub-path of Branch 6. Top vertices w0=(0,1,0) to w3=(6,1,0); interior edges (w0,w1),(w1,w2),(w0,w2),(w2,w3) n=2; seven outer edges n=1. Euler: V=7, E=11, F=5, chi=1.
Reproducer recipe
w0=(0,1,0),w1=(2,1,0),w2=(4,1,0),w3=(6,1,0); u0=u1=u2=(1,0,0); t0=(w0,u0,w1), t1=(w1,u1,w2), t2=(w2,u2,w3), t3=(w0,w1,w2), t4=(w0,w2,w3); vertex_pair assertions for all 3 pairs; euler V=7,E=11,F=5,chi=1.
Expected kernel behavior
Branch 6 fires; range comparison executes; equal ranges cause sr_id group to be erased; recursive call follows (Branch 5).
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": "Me495", 68 "schema_version": 0, 69 "defect_class": "near_coincident_vertex", 70 "title": "sanitize_candidates range_size_comparison: three coincident boundary vertices u0==u1==u2 at (1,0,0) produce overlapping equal-range groups; larger (equal) second group erased (Branch 6)", 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}