mesh-examples/12-14-mesh/Me1070.mesh.json
Sources
- CGAL PMP `PMP.run_stitch_borders` Branch 1 (*vertex-merge-necessity*: `if(get(uvpm, h1_tgt) != get(uvpm, v_to_keep))`)
- `MESH_HEAL_COVERAGE.md`.
Description
Two open rectangular patches (A: t0=(v0,v1,v2), t1=(v0,v2,v3); B: t2=(v4,v6,v7), t3=(v4,v7,v5)) with coincident boundary seam. Patch A's right seam edge (v1,v2) and patch B's left seam edge (v4,v5) are geometrically identical but stored as distinct vertex indices. When run_stitch_borders processes the halfedge pair (h1: v0→v1 in A, h2: v5→v4 in B), h1_tgt=v1 has its own union-find representative while v_to_keep=v4; they differ, so Branch 1 fires and redirects all halfedges at v1's old rep to the master. Coincident pairs: v1==v4 at (1,0,0), v2==v5 at (1,1,0). Each seam edge on 1 triangle. Euler: V=8, E=10, F=4, chi=2.
Reproducer recipe
Patch A: v0=(0,0,0), v1=(1,0,0), v2=(1,1,0), v3=(0,1,0); t0=(v0,v1,v2), t1=(v0,v2,v3). Patch B: v4=(1,0,0), v5=(1,1,0), v6=(2,0,0), v7=(2,1,0); t2=(v4,v6,v7), t3=(v4,v7,v5). edge_shared(v1,v2,1); edge_shared(v4,v5,1); vertex_pair_distance_lt(v1,v4,1e-9); vertex_pair_distance_lt(v2,v5,1e-9); no_shared_triangle(v1,v4); no_shared_triangle(v2,v5); euler V=8,E=10,F=4,chi=2.
Expected kernel behavior
Branch 1 fires; the union-find representative of h1_tgt is different from v_to_keep, so all halfedges currently pointing at h1_tgt's old representative vertex are redirected to v_to_keep (the patch B counterpart), unifying the two vertex records.
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 "triangles": [ 35 [ 36 0, 37 1, 38 2 39 ], 40 [ 41 3, 42 4, 43 5 44 ] 45 ], 46 "metadata": { 47 "id": "Me1070", 48 "schema_version": 0, 49 "defect_class": "near_coincident_vertex", 50 "title": "filter_stitchable_pairs edge-occurrence-limit: two-patch boundary with single coincident-edge pair; count=1 boundary slots confirm manifold safety (Branch 1)", 51 "assertions": [ 52 { 53 "kind": "edge_shared_by_n_triangles", 54 "edge": [ 55 0, 56 1 57 ], 58 "n": 1 59 }, 60 { 61 "kind": "edge_shared_by_n_triangles", 62 "edge": [ 63 0, 64 2 65 ], 66 "n": 1 67 }, 68 { 69 "kind": "edge_shared_by_n_triangles", 70 "edge": [ 71 1, 72 2 73 ], 74 "n": 1 75 }, 76 { 77 "kind": "edge_shared_by_n_triangles", 78 "edge": [ 79 3, 80 4 81 ], 82 "n": 1 83 }, 84 { 85 "kind": "edge_shared_by_n_triangles", 86 "edge": [ 87 3, 88 5 89 ], 90 "n": 1 91 }, 92 { 93 "kind": "edge_shared_by_n_triangles", 94 "edge": [ 95 4, 96 5 97 ], 98 "n": 1 99 }, 100 { 101 "kind": "vertex_pair_distance_lt", 102 "pair": [ 103 1, 104 4 105 ], 106 "lt": 1e-09 107 }, 108 { 109 "kind": "vertex_pair_distance_lt", 110 "pair": [ 111 2, 112 5 113 ], 114 "lt": 1e-09 115 }, 116 { 117 "kind": "vertex_pair_no_shared_triangle", 118 "pair": [ 119 1, 120 4 121 ] 122 }, 123 { 124 "kind": "vertex_pair_no_shared_triangle", 125 "pair": [ 126 2, 127 5 128 ] 129 }, 130 { 131 "kind": "euler_characteristic", 132 "v": 6, 133 "e": 6, 134 "f": 2, 135 "chi": 2 136 } 137 ] 138 } 139}