mesh-examples/12-14-mesh/Me171.mesh.json
Sources
- CGAL `PMP.Polygon_soup_orienter.orient` Branch 2 (*component_init*: `oriented[polygon_index] = true
- stack.push(polygon_index)`)
- `MESH_HEAL_COVERAGE.md`.
Description
A three-triangle horizontal strip. Triangle t0 is the seed polygon that Branch 2 marks as oriented (oriented[polygon_index]=true) and pushes onto the DFS stack. Without this initialization step, the DFS never starts. Triangle t1 is CW (defect) and is reached from t0 once the stack is non-empty.
Reproducer recipe
t0=(v0,v1,v4) CCW; t1=(v1,v4,v5) CW; t2=(v1,v2,v5) CCW; t1 shares edge (v1,v4) with t0.
Expected kernel behavior
component_init seeds t0, pushes it; DFS then finds t1 and applies 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 3.0, 20 0.0, 21 0.0 22 ], 23 [ 24 0.5, 25 1.0, 26 0.0 27 ], 28 [ 29 1.5, 30 1.0, 31 0.0 32 ], 33 [ 34 2.5, 35 1.0, 36 0.0 37 ] 38 ], 39 "triangles": [ 40 [ 41 0, 42 1, 43 4 44 ], 45 [ 46 1, 47 4, 48 5 49 ], 50 [ 51 1, 52 2, 53 5 54 ] 55 ], 56 "metadata": { 57 "id": "Me171", 58 "schema_version": 0, 59 "defect_class": "inconsistent_winding", 60 "title": "orient component_init: seed polygon pushed to DFS stack, starts orientation propagation", 61 "assertions": [ 62 { 63 "kind": "adjacent_triangles_inconsistent_winding", 64 "triangles": [ 65 0, 66 1 67 ] 68 }, 69 { 70 "kind": "edge_shared_by_n_triangles", 71 "edge": [ 72 1, 73 4 74 ], 75 "n": 2 76 }, 77 { 78 "kind": "edge_shared_by_n_triangles", 79 "edge": [ 80 1, 81 5 82 ], 83 "n": 2 84 } 85 ] 86 } 87}