mesh-examples/12-14-mesh/Me173.mesh.json
Sources
- CGAL `PMP.Polygon_soup_orienter.orient` Branch 4 (*edge_iteration*: `for(P_ID ih = 0
- ih < size
- ++ih)`)
- `MESH_HEAL_COVERAGE.md`.
Description
A 2×2 quad patch of 4 triangles. The orient DFS, having seeded on t0, iterates all 3 edges of t0 (Branch 4 fires 3 times). On one of those edges it finds t1 (CCW, consistent); on another it discovers t3 (CW, the defect). Branch 4 fires once per edge of the current polygon.
Reproducer recipe
3×2 vertex grid; t0=(v0,v1,v3) CCW; t1=(v1,v4,v3) CCW; t2=(v1,v2,v5) CCW; t3=(v2,v1,v4) CW.
Expected kernel behavior
edge_iteration visits all edges of the seed; finds t3 with inconsistent winding; triggers orientation_reversal.
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 4, 43 3 44 ], 45 [ 46 1, 47 2, 48 5 49 ], 50 [ 51 2, 52 1, 53 4 54 ] 55 ], 56 "metadata": { 57 "id": "Me173", 58 "schema_version": 0, 59 "defect_class": "inconsistent_winding", 60 "title": "orient edge_iteration: per-edge scan of patch finds defect triangle via edge loop", 61 "assertions": [ 62 { 63 "kind": "edge_shared_by_n_triangles", 64 "edge": [ 65 1, 66 3 67 ], 68 "n": 2 69 }, 70 { 71 "kind": "edge_shared_by_n_triangles", 72 "edge": [ 73 1, 74 2 75 ], 76 "n": 2 77 }, 78 { 79 "kind": "adjacent_triangles_inconsistent_winding", 80 "triangles": [ 81 2, 82 3 83 ] 84 }, 85 { 86 "kind": "edge_shared_by_n_triangles", 87 "edge": [ 88 1, 89 4 90 ], 91 "n": 2 92 }, 93 { 94 "kind": "adjacent_triangles_inconsistent_winding", 95 "triangles": [ 96 1, 97 3 98 ] 99 } 100 ] 101 } 102}