mesh-examples/12-14-mesh/Me304.mesh.json
Sources
- MeshFix `Basic_TMesh.retriangulateSelectedRegion` Branch 5 (*triangle_unlink*: `unlinkTriangle(u)`)
- `MESH_HEAL_COVERAGE.md`.
Description
Post-unlink state: 6 frame triangles surround a triangular hole (vi0,vi1,vi2). The 3 originally-selected triangles have been removed, leaving a hole with 3 boundary edges each incident on 1 frame triangle. The outer edges (vo0-vo1-vo2) are also each boundary (n=1). The hole_boundary assertion confirms the 3 inner edges are true boundaries.
Reproducer recipe
vi0=(0,0,0), vi1=(2,0,0), vi2=(1,2,0); vo0=(-1,-1,0), vo1=(3,-1,0), vo2=(1,4,0); 6 frame triangles; assert hole_boundary=[vi0,vi1,vi2]; outer edges n=1.
Expected kernel behavior
Branch 5 fires; each selected triangle is unlinked in sequence; the hole boundary becomes visible for TriangulateHole.
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 2.0, 16 0.0 17 ], 18 [ 19 -1.0, 20 -1.0, 21 0.0 22 ], 23 [ 24 3.0, 25 -1.0, 26 0.0 27 ], 28 [ 29 1.0, 30 4.0, 31 0.0 32 ] 33 ], 34 "triangles": [ 35 [ 36 3, 37 1, 38 0 39 ], 40 [ 41 3, 42 4, 43 1 44 ], 45 [ 46 4, 47 2, 48 1 49 ], 50 [ 51 4, 52 5, 53 2 54 ], 55 [ 56 5, 57 0, 58 2 59 ], 60 [ 61 5, 62 3, 63 0 64 ] 65 ], 66 "metadata": { 67 "id": "Me304", 68 "schema_version": 0, 69 "defect_class": "retriangulate_region_unlinked", 70 "title": "retriangulateSelectedRegion_triangle_unlink: selected triangles unlinked, hole exposed (Branch 5)", 71 "assertions": [ 72 { 73 "kind": "hole_boundary", 74 "loop": [ 75 0, 76 1, 77 2 78 ] 79 }, 80 { 81 "kind": "edge_shared_by_n_triangles", 82 "edge": [ 83 3, 84 4 85 ], 86 "n": 1 87 }, 88 { 89 "kind": "edge_shared_by_n_triangles", 90 "edge": [ 91 4, 92 5 93 ], 94 "n": 1 95 }, 96 { 97 "kind": "edge_shared_by_n_triangles", 98 "edge": [ 99 3, 100 5 101 ], 102 "n": 1 103 } 104 ] 105 } 106}