mesh-examples/12-14-mesh/Me674.mesh.json
Sources
- MeshFix `checkAndRepair::mergeCoincidentEdges` Branch 5 (*REDUNDANT_EDGE_REMOVAL*: `if (e->info != e)` — second-pass scan over all edges
- edges whose info was redirected to a canonical during Branch 4 are detected here
- replaceEdge redirects the triangle reference to the canonical edge, then the duplicate is nulled)
- `MESH_HEAL_COVERAGE.md`.
Description
Two-patch mesh where patch A has two triangles (t0, t2) and patch B has one triangle (t1). Seam edge (e0,e1)/(f0,f1) at exactly coincident coordinates. After Branch 4 processing, f0,f1 are redirected to e0,e1 and the duplicate seam edge (f0,f1) gets info=canonical_seam_edge. The second-pass scan finds this edge with e->info != e, fires Branch 5, calls replaceEdge to redirect t1's reference, and nulls out the duplicate. Interior edge (e1,e2) shared by t0 and t2 n=2. Euler: V=7, E=8, F=3, chi=2.
Reproducer recipe
e0=(0,0,0), e1=(1,0,0), e2=(0.5,1,0), f0=(0,0,0), f1=(1,0,0), f2=(0.5,-1,0), g2=(1.5,0.5,0); t0=(e0,e1,e2), t1=(f0,f1,f2), t2=(e1,g2,e2); edge_shared(e1,e2,2); seam edges n=1; vertex_pair_distance_lt(e0,f0), vertex_pair_distance_lt(e1,f1); edge_pair_coincident((e0,e1),(f0,f1)); euler V=7,E=8,F=3,chi=2.
Expected kernel behavior
Branch 5 fires for the duplicate seam edge (f0,f1) after info was redirected to canonical in Branch 4; replaceEdge updates t1's edge pointer to the canonical seam edge; duplicate edge is nulled.
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.5, 15 1.0, 16 0.0 17 ], 18 [ 19 0.0, 20 0.0, 21 0.0 22 ], 23 [ 24 1.0, 25 0.0, 26 0.0 27 ], 28 [ 29 0.5, 30 -1.0, 31 0.0 32 ], 33 [ 34 1.5, 35 0.5, 36 0.0 37 ] 38 ], 39 "triangles": [ 40 [ 41 0, 42 1, 43 2 44 ], 45 [ 46 3, 47 4, 48 5 49 ], 50 [ 51 1, 52 6, 53 2 54 ] 55 ], 56 "metadata": { 57 "id": "Me674", 58 "schema_version": 0, 59 "defect_class": "near_coincident_vertex", 60 "title": "mergeCoincidentEdges REDUNDANT_EDGE_REMOVAL: duplicate seam edge (f0,f1) has info redirected to canonical (e0,e1); replaceEdge redirects triangle reference (Branch 5)", 61 "assertions": [ 62 { 63 "kind": "edge_shared_by_n_triangles", 64 "edge": [ 65 1, 66 2 67 ], 68 "n": 2 69 }, 70 { 71 "kind": "edge_shared_by_n_triangles", 72 "edge": [ 73 0, 74 1 75 ], 76 "n": 1 77 }, 78 { 79 "kind": "edge_shared_by_n_triangles", 80 "edge": [ 81 3, 82 4 83 ], 84 "n": 1 85 }, 86 { 87 "kind": "edge_shared_by_n_triangles", 88 "edge": [ 89 0, 90 2 91 ], 92 "n": 1 93 }, 94 { 95 "kind": "edge_shared_by_n_triangles", 96 "edge": [ 97 4, 98 5 99 ], 100 "n": 1 101 }, 102 { 103 "kind": "edge_shared_by_n_triangles", 104 "edge": [ 105 3, 106 5 107 ], 108 "n": 1 109 }, 110 { 111 "kind": "edge_shared_by_n_triangles", 112 "edge": [ 113 1, 114 6 115 ], 116 "n": 1 117 }, 118 { 119 "kind": "edge_shared_by_n_triangles", 120 "edge": [ 121 2, 122 6 123 ], 124 "n": 1 125 }, 126 { 127 "kind": "vertex_pair_distance_lt", 128 "pair": [ 129 0, 130 3 131 ], 132 "lt": 1e-09 133 }, 134 { 135 "kind": "vertex_pair_no_shared_triangle", 136 "pair": [ 137 0, 138 3 139 ] 140 }, 141 { 142 "kind": "vertex_pair_distance_lt", 143 "pair": [ 144 1, 145 4 146 ], 147 "lt": 1e-09 148 }, 149 { 150 "kind": "vertex_pair_no_shared_triangle", 151 "pair": [ 152 1, 153 4 154 ] 155 }, 156 { 157 "kind": "edge_pair_coincident", 158 "edge_a": [ 159 0, 160 1 161 ], 162 "edge_b": [ 163 3, 164 4 165 ], 166 "eps": 1e-09 167 }, 168 { 169 "kind": "euler_characteristic", 170 "v": 7, 171 "e": 8, 172 "f": 3, 173 "chi": 2 174 } 175 ] 176 } 177}