mesh-examples/12-14-mesh/Me601.mesh.json
Sources
- CGAL PMP `PMP.merge_duplicated_vertices_in_boundary_cycle` Branch 2 (*vertex_detection*: `auto hedges_with_identical_point_target = detect_identical_mergeable_vertices(h, pm, vpm)
- `)
- `MESH_HEAL_COVERAGE.md`.
Description
Three triangles with a pentagonal boundary cycle. Vertices e1 and e4 are both at (2,0,0) but topologically distinct. detect_identical_mergeable_vertices is called on the boundary cycle, sorts halfedges by target coordinate, and identifies the {e1, e4} coincident pair → Branch 2 fires. Interior edges (e0,e3) and (e1,e3) n=2; five outer edges n=1. Euler: V=5, E=7, F=3, chi=1.
Reproducer recipe
e0=(0,0,0), e1=(2,0,0), e2=(4,0,0), e3=(2,2,0), e4=(2,0,0)[=e1]; t0=(e0,e1,e3), t1=(e1,e2,e3), t2=(e0,e3,e4); interior edges (e0,e3) and (e1,e3) n=2; vertex_pair_distance_lt(e1,e4,1e-9); vertex_pair_no_shared_triangle(e1,e4); euler V=5,E=7,F=3,chi=1.
Expected kernel behavior
Branch 2 fires; detect_identical_mergeable_vertices returns one group {e1,e4} in hedges_with_identical_point_target.
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 2.0, 10 0.0, 11 0.0 12 ], 13 [ 14 4.0, 15 0.0, 16 0.0 17 ], 18 [ 19 2.0, 20 2.0, 21 0.0 22 ], 23 [ 24 2.0, 25 0.0, 26 0.0 27 ] 28 ], 29 "triangles": [ 30 [ 31 0, 32 1, 33 3 34 ], 35 [ 36 1, 37 2, 38 3 39 ], 40 [ 41 0, 42 3, 43 4 44 ] 45 ], 46 "metadata": { 47 "id": "Me601", 48 "schema_version": 0, 49 "defect_class": "near_coincident_vertex", 50 "title": "merge_duplicated_vertices_in_boundary_cycle vertex_detection: detect_identical_mergeable_vertices finds coincident pair e1==e4 at (2,0,0) on boundary cycle (Branch 2)", 51 "assertions": [ 52 { 53 "kind": "edge_shared_by_n_triangles", 54 "edge": [ 55 0, 56 3 57 ], 58 "n": 2 59 }, 60 { 61 "kind": "edge_shared_by_n_triangles", 62 "edge": [ 63 1, 64 3 65 ], 66 "n": 2 67 }, 68 { 69 "kind": "edge_shared_by_n_triangles", 70 "edge": [ 71 0, 72 1 73 ], 74 "n": 1 75 }, 76 { 77 "kind": "edge_shared_by_n_triangles", 78 "edge": [ 79 1, 80 2 81 ], 82 "n": 1 83 }, 84 { 85 "kind": "edge_shared_by_n_triangles", 86 "edge": [ 87 2, 88 3 89 ], 90 "n": 1 91 }, 92 { 93 "kind": "edge_shared_by_n_triangles", 94 "edge": [ 95 3, 96 4 97 ], 98 "n": 1 99 }, 100 { 101 "kind": "edge_shared_by_n_triangles", 102 "edge": [ 103 0, 104 4 105 ], 106 "n": 1 107 }, 108 { 109 "kind": "vertex_pair_distance_lt", 110 "pair": [ 111 1, 112 4 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": "euler_characteristic", 125 "v": 5, 126 "e": 7, 127 "f": 3, 128 "chi": 1 129 } 130 ] 131 } 132}