mesh-examples/12-14-mesh/Me376.mesh.json
Sources
- MeshFix `Basic_TMesh.isSelectionSimple` Branch 7 (*boundary_loop_complexity*: `nv != bdr.numels() → return 0`)
- `MESH_HEAL_COVERAGE.md`.
Description
A 6-triangle annular ring surrounding a triangular hole. The selection boundary has two separate loops: an inner hole boundary (v0,v1,v2 — 3 edges n=1) and an outer boundary (v3,v4,v5 — 3 edges n=1). When isSelectionSimple counts boundary vertices (nv) via a single traversal and compares against bdr.numels() (total edges), the two-loop annulus fails the single-loop equality test → Branch 7 fires → return 0. Interior ring edges are n=2. Euler: V=6, E=12, F=6, chi=0 (annulus/cylinder).
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(0.5,0.87,0) inner; v3=(-1,-1,0), v4=(2,-1,0), v5=(0.5,2,0) outer; 6 ring triangles; inner edges n=1; outer edges n=1; ring edges n=2; euler V=6,E=12,F=6,chi=0.
Expected kernel behavior
Boundary traversal finds more edges than can form one simple loop; nv != bdr.numels(); Branch 7 fires; returns 0 (non-simple boundary).
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 0.87, 16 0.0 17 ], 18 [ 19 -1.0, 20 -1.0, 21 0.0 22 ], 23 [ 24 2.0, 25 -1.0, 26 0.0 27 ], 28 [ 29 0.5, 30 2.0, 31 0.0 32 ] 33 ], 34 "triangles": [ 35 [ 36 0, 37 3, 38 1 39 ], 40 [ 41 1, 42 3, 43 4 44 ], 45 [ 46 1, 47 4, 48 2 49 ], 50 [ 51 2, 52 4, 53 5 54 ], 55 [ 56 2, 57 5, 58 0 59 ], 60 [ 61 0, 62 5, 63 3 64 ] 65 ], 66 "metadata": { 67 "id": "Me376", 68 "schema_version": 0, 69 "defect_class": "selection_non_simple_boundary", 70 "title": "isSelectionSimple_boundary_loop_complexity: annular selection with inner hole, two boundary loops \u2192 nv != bdr.numels() (Branch 7)", 71 "assertions": [ 72 { 73 "kind": "edge_shared_by_n_triangles", 74 "edge": [ 75 0, 76 1 77 ], 78 "n": 1 79 }, 80 { 81 "kind": "edge_shared_by_n_triangles", 82 "edge": [ 83 1, 84 2 85 ], 86 "n": 1 87 }, 88 { 89 "kind": "edge_shared_by_n_triangles", 90 "edge": [ 91 0, 92 2 93 ], 94 "n": 1 95 }, 96 { 97 "kind": "edge_shared_by_n_triangles", 98 "edge": [ 99 3, 100 4 101 ], 102 "n": 1 103 }, 104 { 105 "kind": "edge_shared_by_n_triangles", 106 "edge": [ 107 4, 108 5 109 ], 110 "n": 1 111 }, 112 { 113 "kind": "edge_shared_by_n_triangles", 114 "edge": [ 115 3, 116 5 117 ], 118 "n": 1 119 }, 120 { 121 "kind": "edge_shared_by_n_triangles", 122 "edge": [ 123 0, 124 3 125 ], 126 "n": 2 127 }, 128 { 129 "kind": "edge_shared_by_n_triangles", 130 "edge": [ 131 1, 132 3 133 ], 134 "n": 2 135 }, 136 { 137 "kind": "edge_shared_by_n_triangles", 138 "edge": [ 139 1, 140 4 141 ], 142 "n": 2 143 }, 144 { 145 "kind": "edge_shared_by_n_triangles", 146 "edge": [ 147 2, 148 4 149 ], 150 "n": 2 151 }, 152 { 153 "kind": "edge_shared_by_n_triangles", 154 "edge": [ 155 2, 156 5 157 ], 158 "n": 2 159 }, 160 { 161 "kind": "edge_shared_by_n_triangles", 162 "edge": [ 163 0, 164 5 165 ], 166 "n": 2 167 }, 168 { 169 "kind": "euler_characteristic", 170 "v": 6, 171 "e": 12, 172 "f": 6, 173 "chi": 0 174 } 175 ] 176 } 177}