mesh-examples/12-14-mesh/Me206.mesh.json
Sources
- MeshFix `Vertex.zip` Branch 7 (*vertex_replacement_in_edges*: `e->replaceVertex(ov2, ov1)`)
- `MESH_HEAL_COVERAGE.md`.
Description
zip iterates over all edges incident to ov2 and replaces the ov2 reference with ov1. Branch 7 covers the replacement loop. Geometry: Patch B has a two-triangle fan at ov2 (v3) so the loop iterates twice; ov1=v2 and ov2=v3 are near-coincident.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(0.5,1,0); v3=(0.5,1,0) [near v2], v4=(1.5,1.5,0), v5=(-0.5,1.5,0), v6=(0,0,0) [near v0]; t0=(v0,v1,v2), t1=(v6,v3,v4), t2=(v6,v5,v3).
Expected kernel behavior
replaceVertex loop replaces v3→v2 in both edges (v3,v4) and (v5,v3).
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.5, 20 1.0, 21 0.0 22 ], 23 [ 24 1.5, 25 1.5, 26 0.0 27 ], 28 [ 29 -0.5, 30 1.5, 31 0.0 32 ], 33 [ 34 0.0, 35 0.0, 36 0.0 37 ] 38 ], 39 "triangles": [ 40 [ 41 0, 42 1, 43 2 44 ], 45 [ 46 6, 47 3, 48 4 49 ], 50 [ 51 6, 52 5, 53 3 54 ] 55 ], 56 "metadata": { 57 "id": "Me206", 58 "schema_version": 0, 59 "defect_class": "zip_vertex_replacement_in_edges", 60 "title": "zip_vertex_replacement_in_edges: ov2 incident on multiple edges; zip replaceVertex loop touches all of them", 61 "assertions": [ 62 { 63 "kind": "edge_shared_by_n_triangles", 64 "edge": [ 65 0, 66 1 67 ], 68 "n": 1 69 }, 70 { 71 "kind": "edge_shared_by_n_triangles", 72 "edge": [ 73 0, 74 2 75 ], 76 "n": 1 77 }, 78 { 79 "kind": "edge_shared_by_n_triangles", 80 "edge": [ 81 1, 82 2 83 ], 84 "n": 1 85 }, 86 { 87 "kind": "edge_shared_by_n_triangles", 88 "edge": [ 89 3, 90 4 91 ], 92 "n": 1 93 }, 94 { 95 "kind": "edge_shared_by_n_triangles", 96 "edge": [ 97 3, 98 5 99 ], 100 "n": 1 101 }, 102 { 103 "kind": "edge_shared_by_n_triangles", 104 "edge": [ 105 3, 106 6 107 ], 108 "n": 2 109 }, 110 { 111 "kind": "vertex_pair_distance_lt", 112 "pair": [ 113 2, 114 3 115 ], 116 "lt": 1e-09 117 }, 118 { 119 "kind": "vertex_pair_distance_lt", 120 "pair": [ 121 0, 122 6 123 ], 124 "lt": 1e-09 125 } 126 ] 127 } 128}