mesh-examples/12-14-mesh/Me095.mesh.json
Sources
- MeshFix `Edge.collapseOnV1` Branch 9 (*VERTEX_MERGE*: `e->replaceVertex(v2, v1)` for all edges incident to v2)
- `MESH_HEAL_COVERAGE.md`.
Description
v0 and v1 are 1e-6 apart — sub-tolerance near-coincident. v0 is shared by 3 triangles forming a small fan. The collapse's vertex-merge sub-pass must re-route every edge formerly incident to v0 to point at v1 instead. This exercises the `replaceVertex` loop with a 3-edge one-ring.
Reproducer recipe
v0=(0,0,0), v1=(1e-6,0,0), v2=(0,1,0), v3=(1,1,0), v4=(1,0,0); t0=(v0,v1,v3), t1=(v0,v3,v2), t2=(v0,v4,v1).
Expected kernel behavior
merge v0 into v1; re-route 3 triangle references from v0 to v1.
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 1e-06, 10 0.0, 11 0.0 12 ], 13 [ 14 0.0, 15 1.0, 16 0.0 17 ], 18 [ 19 1.0, 20 1.0, 21 0.0 22 ], 23 [ 24 1.0, 25 0.0, 26 0.0 27 ] 28 ], 29 "triangles": [ 30 [ 31 0, 32 1, 33 3 34 ], 35 [ 36 0, 37 3, 38 2 39 ], 40 [ 41 0, 42 4, 43 1 44 ] 45 ], 46 "metadata": { 47 "id": "Me095", 48 "schema_version": 0, 49 "defect_class": "near_coincident_vertices", 50 "title": "edge_collapse_vertex_merge: near-coincident v0 and v1, 3-triangle fan on v0", 51 "assertions": [ 52 { 53 "kind": "vertex_pair_distance_lt", 54 "pair": [ 55 0, 56 1 57 ], 58 "lt": 1e-05 59 }, 60 { 61 "kind": "edge_shared_by_n_triangles", 62 "edge": [ 63 0, 64 1 65 ], 66 "n": 2 67 }, 68 { 69 "kind": "edge_shared_by_n_triangles", 70 "edge": [ 71 0, 72 3 73 ], 74 "n": 2 75 }, 76 { 77 "kind": "edge_shared_by_n_triangles", 78 "edge": [ 79 0, 80 2 81 ], 82 "n": 1 83 }, 84 { 85 "kind": "edge_shared_by_n_triangles", 86 "edge": [ 87 0, 88 4 89 ], 90 "n": 1 91 } 92 ] 93 } 94}