mesh-examples/12-14-mesh/Me049.mesh.json
Sources
- CGAL `PMP.compatible_orientations` Branch 4 @ line 1310 (*boundary_cycle_traversal*)
- `MESH_HEAL_COVERAGE.md`.
Description
an open mesh of 3 triangles has two distinct boundary loops. Triangle 0 is isolated on the left (boundary loop A: v0–v1–v3). Triangles 1 and 2 form a connected patch on the right sharing one interior edge (v1,v5) (boundary loop B: v1–v2–v5–v4). The compatible_orientations BFS must correctly advance along boundary halfedges (next_on_border) when it reaches a boundary edge, so it does not confuse a boundary with an unvisited interior face.
Reproducer recipe
6 vertices in a 2×3 grid; tri0=(v0,v1,v3), tri1=(v1,v2,v5), tri2=(v1,v5,v4); edge (v1,v5) is interior (shared by 2); all other edges are boundary (shared by 1).
Expected kernel behavior
correctly traverse both boundary loops during BFS; consistently orient all 3 triangles (they are all CCW +Z, no conflict).
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 1.0, 25 1.0, 26 0.0 27 ], 28 [ 29 2.0, 30 1.0, 31 0.0 32 ] 33 ], 34 "triangles": [ 35 [ 36 0, 37 1, 38 3 39 ], 40 [ 41 1, 42 2, 43 5 44 ], 45 [ 46 1, 47 5, 48 4 49 ] 50 ], 51 "metadata": { 52 "id": "Me049", 53 "schema_version": 0, 54 "defect_class": "boundary_traversal", 55 "title": "boundary halfedge traversal: next_on_border walk around open mesh boundary", 56 "assertions": [ 57 { 58 "kind": "edge_shared_by_n_triangles", 59 "edge": [ 60 1, 61 5 62 ], 63 "n": 2 64 }, 65 { 66 "kind": "hole_boundary", 67 "loop": [ 68 0, 69 1, 70 3 71 ] 72 }, 73 { 74 "kind": "hole_boundary", 75 "loop": [ 76 1, 77 2, 78 5, 79 4 80 ] 81 } 82 ] 83 } 84}