mesh-examples/12-14-mesh/Me182.mesh.json
Sources
- MeshFix `Basic_TMesh.splitEdge` Branch 3 (*opposite_vertex_t1*: `v3 = e->t1->oppositeVertex(e)`)
- `MESH_HEAL_COVERAGE.md`.
Description
A boundary edge e=(v0,v1) with one incident triangle t0=(v0,v1,v2). e->t1=t0 is non-NULL so v3=v2 is extracted as the vertex opposite to e in t1. A proposed split midpoint vn=(1,0,0) lies on e. t2 is NULL (boundary edge).
Reproducer recipe
v0=(0,0,0), v1=(2,0,0), v2=(1,1,0), vn=(1,0,0); t0=(v0,v1,v2). vn on edge (v0,v1).
Expected kernel behavior
e->t1 != NULL → v3 = e->t1->oppositeVertex(e) = v2; t2 is NULL so v4 is skipped.
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 1.0, 15 1.0, 16 0.0 17 ], 18 [ 19 1.0, 20 0.0, 21 0.0 22 ] 23 ], 24 "triangles": [ 25 [ 26 0, 27 1, 28 2 29 ] 30 ], 31 "metadata": { 32 "id": "Me182", 33 "schema_version": 0, 34 "defect_class": "split_edge_boundary", 35 "title": "split_edge_opposite_vertex_t1: t1 exists, v3 extracted as oppositeVertex", 36 "assertions": [ 37 { 38 "kind": "edge_shared_by_n_triangles", 39 "edge": [ 40 0, 41 1 42 ], 43 "n": 1 44 }, 45 { 46 "kind": "edge_shared_by_n_triangles", 47 "edge": [ 48 0, 49 2 50 ], 51 "n": 1 52 }, 53 { 54 "kind": "edge_shared_by_n_triangles", 55 "edge": [ 56 1, 57 2 58 ], 59 "n": 1 60 }, 61 { 62 "kind": "vertex_on_edge", 63 "vertex": 3, 64 "edge": [ 65 0, 66 1 67 ] 68 } 69 ] 70 } 71}