mesh-examples/12-14-mesh/Me161.mesh.json
Sources
- MeshFix `Edge.stitch` Branch 2 (*STITCH_START_TRIANGLE*: `t0 = (t1 != NULL) ? (t1) : (t2)`)
- `MESH_HEAL_COVERAGE.md`.
Description
Two separate open patches with coincident boundary edges. The stitch edge's t1 slot is occupied; Branch 2 selects t1 as the boundary walk start. Near-coincident vertex pairs confirm the unstitched gap.
Reproducer recipe
Patch A: v0=(0,0,0), v1=(1,0,0), v2=(0.5,1,0), t0=(v0,v1,v2). Patch B: v3=(0,0,0), v4=(1,0,0), v5=(0.5,-1,0), t1=(v3,v4,v5).
Expected kernel behavior
t0 = t1 (non-NULL); boundary walk begins from Patch A's triangle.
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 0.0, 20 0.0, 21 0.0 22 ], 23 [ 24 1.0, 25 0.0, 26 0.0 27 ], 28 [ 29 0.5, 30 -1.0, 31 0.0 32 ] 33 ], 34 "triangles": [ 35 [ 36 0, 37 1, 38 2 39 ], 40 [ 41 3, 42 4, 43 5 44 ] 45 ], 46 "metadata": { 47 "id": "Me161", 48 "schema_version": 0, 49 "defect_class": "stitch_boundary_gap_t1_branch", 50 "title": "stitch_start_triangle_t1: boundary edge with t1 occupied selects t1 as walk start", 51 "assertions": [ 52 { 53 "kind": "edge_shared_by_n_triangles", 54 "edge": [ 55 0, 56 1 57 ], 58 "n": 1 59 }, 60 { 61 "kind": "edge_shared_by_n_triangles", 62 "edge": [ 63 3, 64 4 65 ], 66 "n": 1 67 }, 68 { 69 "kind": "vertex_pair_distance_lt", 70 "pair": [ 71 0, 72 3 73 ], 74 "lt": 1e-09 75 }, 76 { 77 "kind": "vertex_pair_distance_lt", 78 "pair": [ 79 1, 80 4 81 ], 82 "lt": 1e-09 83 } 84 ] 85 } 86}