mesh-examples/12-14-mesh/Me253.mesh.json
Sources
- MeshFix `Basic_TMesh.openToDisk` Branch 4 (*leaf_boundary_vertex*: `numels()==1`)
- `MESH_HEAL_COVERAGE.md`.
Description
A 3-triangle L-shaped strip. After BFS labels all boundary edges, openToDisk scans for a boundary vertex with numels()==1 (leaf: only one pending boundary edge in the spanning tree). The corner vertex v0 has the minimum boundary connectivity and serves as the natural BFS root. Interior edges (1,2) and (2,3) are each n=2; five boundary edges form the open strip.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(0.5,1,0), v3=(1.5,1,0), v4=(1,2,0); t0=(v0,v1,v2), t1=(v1,v3,v2), t2=(v2,v3,v4).
Expected kernel behavior
openToDisk selects v0 as spanning tree root (leaf vertex with minimum boundary edge count).
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 1.5, 20 1.0, 21 0.0 22 ], 23 [ 24 1.0, 25 2.0, 26 0.0 27 ] 28 ], 29 "triangles": [ 30 [ 31 0, 32 1, 33 2 34 ], 35 [ 36 1, 37 3, 38 2 39 ], 40 [ 41 2, 42 3, 43 4 44 ] 45 ], 46 "metadata": { 47 "id": "Me253", 48 "schema_version": 0, 49 "defect_class": "open_to_disk_leaf", 50 "title": "openToDisk_leaf_boundary_vertex: corner vertex with min boundary valence chosen as BFS root", 51 "assertions": [ 52 { 53 "kind": "edge_shared_by_n_triangles", 54 "edge": [ 55 1, 56 2 57 ], 58 "n": 2 59 }, 60 { 61 "kind": "edge_shared_by_n_triangles", 62 "edge": [ 63 2, 64 3 65 ], 66 "n": 2 67 }, 68 { 69 "kind": "edge_shared_by_n_triangles", 70 "edge": [ 71 0, 72 1 73 ], 74 "n": 1 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 1, 88 3 89 ], 90 "n": 1 91 }, 92 { 93 "kind": "edge_shared_by_n_triangles", 94 "edge": [ 95 3, 96 4 97 ], 98 "n": 1 99 }, 100 { 101 "kind": "edge_shared_by_n_triangles", 102 "edge": [ 103 2, 104 4 105 ], 106 "n": 1 107 }, 108 { 109 "kind": "hole_boundary", 110 "loop": [ 111 0, 112 1, 113 3, 114 4, 115 2 116 ] 117 } 118 ] 119 } 120}