mesh-examples/12-14-mesh/Me711.mesh.json
Sources
- MeshFix `Basic_TMesh.removeVertices` Branch 2 (*orphan_vertex_check*: `if (v->e0 == NULL)`)
- `MESH_HEAL_COVERAGE.md`.
Description
Two triangles sharing a diagonal (v0,v2) forming a quad, plus isolated vertex v4=(5,5,0) appended to the list. removeVertices traverses the vertex list and encounters v4; since v4 has no incident edge (e0==NULL) the orphan check evaluates true.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(1,1,0), v3=(0,1,0) — quad; v4=(5,5,0) isolated; t0=(v0,v1,v2), t1=(v0,v2,v3); diagonal n=2; four boundary edges n=1; isolated_vertex(v4).
Expected kernel behavior
Branch 2 fires when v4 is encountered; e0==NULL evaluates true; v4 is queued for removal.
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 1.0, 15 1.0, 16 0.0 17 ], 18 [ 19 0.0, 20 1.0, 21 0.0 22 ], 23 [ 24 5.0, 25 5.0, 26 0.0 27 ] 28 ], 29 "triangles": [ 30 [ 31 0, 32 1, 33 2 34 ], 35 [ 36 0, 37 2, 38 3 39 ] 40 ], 41 "metadata": { 42 "id": "Me711", 43 "schema_version": 0, 44 "defect_class": "isolated_vertex", 45 "title": "Basic_TMesh.removeVertices orphan_vertex_check: isolated vertex v4 has e0==NULL; check fires (Branch 2)", 46 "assertions": [ 47 { 48 "kind": "edge_shared_by_n_triangles", 49 "edge": [ 50 0, 51 2 52 ], 53 "n": 2 54 }, 55 { 56 "kind": "edge_shared_by_n_triangles", 57 "edge": [ 58 0, 59 1 60 ], 61 "n": 1 62 }, 63 { 64 "kind": "edge_shared_by_n_triangles", 65 "edge": [ 66 1, 67 2 68 ], 69 "n": 1 70 }, 71 { 72 "kind": "edge_shared_by_n_triangles", 73 "edge": [ 74 2, 75 3 76 ], 77 "n": 1 78 }, 79 { 80 "kind": "edge_shared_by_n_triangles", 81 "edge": [ 82 0, 83 3 84 ], 85 "n": 1 86 }, 87 { 88 "kind": "isolated_vertex", 89 "vertex": 4 90 } 91 ] 92 } 93}