mesh-examples/12-14-mesh/Me811.mesh.json
Sources
- MeshFix `Basic_TMesh.StarTriangulateHole` Branch 2 (*BOUNDARY_LOOP_CLOSURE*: `do { … e = nextOnBoundary(e)
- } while (v != e->v1)
- ` @ line 62)
- `MESH_HEAL_COVERAGE.md`.
Description
A 4-sector fan from hub h=(1,1,0) with rim vertices r0..r3, but sector (h,r3,r0) omitted. This leaves a 3-vertex / 3-edge boundary loop: h → r0 → r3 → h. Three nextOnBoundary steps complete the traversal; when the loop condition `v != e->v1` becomes false, Branch 2 exits and the full boundary vertex list is collected. Hub edges h-r1 and h-r2 are interior (n=2); all three hole-boundary edges are n=1. Euler V=5,E=8,F=3,chi=0.
Reproducer recipe
h=(1,1,0) [idx 0], r0=(0,0,0) [1], r1=(2,0,0) [2], r2=(2,2,0) [3], r3=(0,2,0) [4]; t0=(h,r0,r1), t1=(h,r1,r2), t2=(h,r2,r3); hole boundary edges: (h,r3)=[0,4], (r3,r0)=[1,4], (r0,h)=[0,1] all n=1; euler V=5,E=8,F=3,chi=0.
Expected kernel behavior
Branch 2 fires after 3 nextOnBoundary iterations; traversal returns to e->v1 (start vertex); boundary loop [h, r0, r3] collected and ready for barycenter accumulation.
Expected validation
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1{ 2 "vertices": [ 3 [ 4 1.0, 5 1.0, 6 0.0 7 ], 8 [ 9 0.0, 10 0.0, 11 0.0 12 ], 13 [ 14 2.0, 15 0.0, 16 0.0 17 ], 18 [ 19 2.0, 20 2.0, 21 0.0 22 ], 23 [ 24 0.0, 25 2.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 0, 42 3, 43 4 44 ] 45 ], 46 "metadata": { 47 "id": "Me811", 48 "schema_version": 0, 49 "defect_class": "star_triangulate_hole_boundary_loop_closure", 50 "title": "StarTriangulateHole_boundary_loop_closure: 3-vertex hole in fan mesh; v==e->v1 exits traversal loop (Branch 2)", 51 "assertions": [ 52 { 53 "kind": "edge_shared_by_n_triangles", 54 "edge": [ 55 0, 56 4 57 ], 58 "n": 1 59 }, 60 { 61 "kind": "edge_shared_by_n_triangles", 62 "edge": [ 63 1, 64 4 65 ], 66 "n": 1 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": 2 83 }, 84 { 85 "kind": "edge_shared_by_n_triangles", 86 "edge": [ 87 0, 88 3 89 ], 90 "n": 2 91 }, 92 { 93 "kind": "edge_shared_by_n_triangles", 94 "edge": [ 95 1, 96 2 97 ], 98 "n": 1 99 }, 100 { 101 "kind": "edge_shared_by_n_triangles", 102 "edge": [ 103 2, 104 3 105 ], 106 "n": 1 107 }, 108 { 109 "kind": "edge_shared_by_n_triangles", 110 "edge": [ 111 3, 112 4 113 ], 114 "n": 1 115 }, 116 { 117 "kind": "euler_characteristic", 118 "v": 5, 119 "e": 8, 120 "f": 3, 121 "chi": 0 122 } 123 ] 124 } 125}