mesh-examples/12-14-mesh/Me670.mesh.json
Sources
- MeshFix `checkAndRepair::mergeCoincidentEdges` Branch 1 (*BOUNDARY_VERTEX_CLASSIFICATION*: `MARK_BIT(e->v1, 5)
- ` — each boundary edge marks both endpoint vertices with BIT 5 for subsequent `isOnBoundary` lookup)
- `MESH_HEAL_COVERAGE.md`.
Description
Two disjoint triangles sharing only vertex v1 (bottom-middle) produce an open mesh with six boundary edges and zero interior edges (n=2). Every edge scan fires Branch 1, marking all five vertices with BIT 5. The absence of any n=2 edge ensures only the boundary-classification code path is exercised. Euler: V=5, E=6, F=2, chi=1.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(2,0,0), v3=(0,1,0), v4=(2,1,0); t0=(v0,v1,v3), t1=(v1,v2,v4); all six edges n=1; euler V=5,E=6,F=2,chi=1.
Expected kernel behavior
Branch 1 fires for all six boundary edges; all five vertices are tagged with MARK_BIT(v,5); isOnBoundary returns true for each.
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 2.0, 15 0.0, 16 0.0 17 ], 18 [ 19 0.0, 20 1.0, 21 0.0 22 ], 23 [ 24 2.0, 25 1.0, 26 0.0 27 ] 28 ], 29 "triangles": [ 30 [ 31 0, 32 1, 33 3 34 ], 35 [ 36 1, 37 2, 38 4 39 ] 40 ], 41 "metadata": { 42 "id": "Me670", 43 "schema_version": 0, 44 "defect_class": "open_boundary", 45 "title": "mergeCoincidentEdges BOUNDARY_VERTEX_CLASSIFICATION: open mesh; every edge n=1 triggers MARK_BIT(v,5) on both endpoints (Branch 1)", 46 "assertions": [ 47 { 48 "kind": "edge_shared_by_n_triangles", 49 "edge": [ 50 0, 51 1 52 ], 53 "n": 1 54 }, 55 { 56 "kind": "edge_shared_by_n_triangles", 57 "edge": [ 58 1, 59 3 60 ], 61 "n": 1 62 }, 63 { 64 "kind": "edge_shared_by_n_triangles", 65 "edge": [ 66 0, 67 3 68 ], 69 "n": 1 70 }, 71 { 72 "kind": "edge_shared_by_n_triangles", 73 "edge": [ 74 1, 75 2 76 ], 77 "n": 1 78 }, 79 { 80 "kind": "edge_shared_by_n_triangles", 81 "edge": [ 82 2, 83 4 84 ], 85 "n": 1 86 }, 87 { 88 "kind": "edge_shared_by_n_triangles", 89 "edge": [ 90 1, 91 4 92 ], 93 "n": 1 94 }, 95 { 96 "kind": "euler_characteristic", 97 "v": 5, 98 "e": 6, 99 "f": 2, 100 "chi": 1 101 } 102 ] 103 } 104}