mesh-examples/12-14-mesh/Me170.mesh.json
Sources
- CGAL `PMP.Polygon_soup_orienter.orient` Branch 1 (*polygon_scan*: `while (polygon_index != polygons.size() && oriented[polygon_index])`)
- `MESH_HEAL_COVERAGE.md`.
Description
Two disconnected triangles — component 1 at z=0 (CCW seed) and component 2 at z=5 (CW defect). The orient polygon_scan loop must increment polygon_index past the already-oriented seed to find the second unoriented polygon. Without Branch 1, the CW triangle in the second component would never be reached.
Reproducer recipe
t0=(v0,v1,v2) at z=0 CCW; t1=(v3,v5,v4) at z=5 CW (no shared edges between components).
Expected kernel behavior
polygon_scan increments polygon_index until the second unoriented polygon is found; orient reverses it.
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 5.0 22 ], 23 [ 24 1.0, 25 0.0, 26 5.0 27 ], 28 [ 29 0.5, 30 1.0, 31 5.0 32 ] 33 ], 34 "triangles": [ 35 [ 36 0, 37 1, 38 2 39 ], 40 [ 41 3, 42 5, 43 4 44 ] 45 ], 46 "metadata": { 47 "id": "Me170", 48 "schema_version": 0, 49 "defect_class": "inconsistent_winding", 50 "title": "orient polygon_scan: scan loop reaches isolated second component triangle", 51 "assertions": [ 52 { 53 "kind": "triangle_not_reachable_from", 54 "target": 1, 55 "source": 0 56 }, 57 { 58 "kind": "triangle_normal_z_negative", 59 "triangle": 1 60 }, 61 { 62 "kind": "adjacent_triangles_inconsistent_winding", 63 "triangles": [ 64 0, 65 1 66 ] 67 } 68 ] 69 } 70}