mesh-examples/12-14-mesh/Me1072.mesh.json
Sources
- CGAL PMP `PMP.filter_stitchable_pairs (manifold validator)` Branch 3 (*multi-edge-vertex-disqualification*: `default: for(auto h : it->second) { unstitchable_vertices.insert(source(h,mesh))
- unstitchable_vertices.insert(target(h,mesh))
- }`)
- `MESH_HEAL_COVERAGE.md`.
Description
Three triangular patches with a three-way coincident seam edge. Patch A: u0=(0,0,0), u1=(1,0,0), u2=(0,1,0). Patch B: b0=(2,0,0), b1=(1,0,0), b2=(0,1,0) [b1≡u1, b2≡u2]. Patch C: c0=(-1,0,0), c1=(1,0,0), c2=(0,1,0) [c1≡u1, c2≡u2]. After tentative vertex merge, the canonical edge (u1,u2) accumulates 3 halfedges (one from each patch) — non-manifold. The default case fires: all source/target vertices of the offending halfedges are inserted into unstitchable_vertices → Branch 3. All 9 edges boundary (n=1). Euler: V=9, E=9, F=3, chi=3.
Reproducer recipe
u0=(0,0,0), u1=(1,0,0), u2=(0,1,0); b0=(2,0,0), b1=(1,0,0), b2=(0,1,0); c0=(-1,0,0), c1=(1,0,0), c2=(0,1,0); t0-t2 each isolated triangles; all 9 edges n=1; vertex_pair_distance_lt for all coincident pairs; vertex_pair_no_shared_triangle; euler V=9,E=9,F=3,chi=3.
Expected kernel behavior
Branch 3 fires; default case iterates the 3 offending halfedges; source and target of each are inserted into unstitchable_vertices (up to 6 vertex indices for 3 halfedges sharing 2 endpoints).
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 0.0, 15 1.0, 16 0.0 17 ], 18 [ 19 2.0, 20 0.0, 21 0.0 22 ], 23 [ 24 1.0, 25 0.0, 26 0.0 27 ], 28 [ 29 0.0, 30 1.0, 31 0.0 32 ], 33 [ 34 -1.0, 35 0.0, 36 0.0 37 ], 38 [ 39 1.0, 40 0.0, 41 0.0 42 ], 43 [ 44 0.0, 45 1.0, 46 0.0 47 ] 48 ], 49 "triangles": [ 50 [ 51 0, 52 1, 53 2 54 ], 55 [ 56 3, 57 4, 58 5 59 ], 60 [ 61 6, 62 7, 63 8 64 ] 65 ], 66 "metadata": { 67 "id": "Me1072", 68 "schema_version": 0, 69 "defect_class": "near_coincident_vertex", 70 "title": "filter_stitchable_pairs multi-edge-vertex-disqualification: 3 coincident boundary halfedges on same merged edge; default case marks all vertices unstitchable (Branch 3)", 71 "assertions": [ 72 { 73 "kind": "edge_shared_by_n_triangles", 74 "edge": [ 75 0, 76 1 77 ], 78 "n": 1 79 }, 80 { 81 "kind": "edge_shared_by_n_triangles", 82 "edge": [ 83 0, 84 2 85 ], 86 "n": 1 87 }, 88 { 89 "kind": "edge_shared_by_n_triangles", 90 "edge": [ 91 1, 92 2 93 ], 94 "n": 1 95 }, 96 { 97 "kind": "edge_shared_by_n_triangles", 98 "edge": [ 99 3, 100 4 101 ], 102 "n": 1 103 }, 104 { 105 "kind": "edge_shared_by_n_triangles", 106 "edge": [ 107 3, 108 5 109 ], 110 "n": 1 111 }, 112 { 113 "kind": "edge_shared_by_n_triangles", 114 "edge": [ 115 4, 116 5 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 6, 132 8 133 ], 134 "n": 1 135 }, 136 { 137 "kind": "edge_shared_by_n_triangles", 138 "edge": [ 139 7, 140 8 141 ], 142 "n": 1 143 }, 144 { 145 "kind": "vertex_pair_distance_lt", 146 "pair": [ 147 1, 148 4 149 ], 150 "lt": 1e-09 151 }, 152 { 153 "kind": "vertex_pair_distance_lt", 154 "pair": [ 155 1, 156 7 157 ], 158 "lt": 1e-09 159 }, 160 { 161 "kind": "vertex_pair_distance_lt", 162 "pair": [ 163 2, 164 5 165 ], 166 "lt": 1e-09 167 }, 168 { 169 "kind": "vertex_pair_distance_lt", 170 "pair": [ 171 2, 172 8 173 ], 174 "lt": 1e-09 175 }, 176 { 177 "kind": "vertex_pair_no_shared_triangle", 178 "pair": [ 179 1, 180 4 181 ] 182 }, 183 { 184 "kind": "vertex_pair_no_shared_triangle", 185 "pair": [ 186 1, 187 7 188 ] 189 }, 190 { 191 "kind": "vertex_pair_no_shared_triangle", 192 "pair": [ 193 2, 194 5 195 ] 196 }, 197 { 198 "kind": "vertex_pair_no_shared_triangle", 199 "pair": [ 200 2, 201 8 202 ] 203 }, 204 { 205 "kind": "euler_characteristic", 206 "v": 9, 207 "e": 9, 208 "f": 3, 209 "chi": 3 210 } 211 ] 212 } 213}