mesh-examples/12-14-mesh/Me037.mesh.json
Sources
- CGAL `PMP.merge_duplicate_polygons_in_polygon_soup` Branch 2 @ line 955 (*orientation_requirement*)
- `MESH_HEAL_COVERAGE.md`.
Description
triangle 0 is (0,1,2) and triangle 1 is (0,2,1) — identical vertex sets but opposite winding. The require_same_orientation named-parameter controls whether the healer classifies these as duplicates (false) or distinct (true).
Reproducer recipe
vertices at (0,0,0), (1,0,0), (0.5,1,0), (0.5,-1,0); tri0=(0,1,2) CCW; tri1=(0,2,1) CW.
Expected kernel behavior
with require_same_orientation=false → merge pair as duplicates; with require_same_orientation=true → treat as distinct (no merge).
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.5, 20 -1.0, 21 0.0 22 ] 23 ], 24 "triangles": [ 25 [ 26 0, 27 1, 28 2 29 ], 30 [ 31 0, 32 2, 33 1 34 ], 35 [ 36 0, 37 3, 38 1 39 ] 40 ], 41 "metadata": { 42 "id": "Me037", 43 "schema_version": 0, 44 "defect_class": "duplicate_triangles", 45 "title": "duplicate_polygons orientation_requirement: reversed-winding pair", 46 "assertions": [ 47 { 48 "kind": "reversed_polygon_pair", 49 "triangles": [ 50 0, 51 1 52 ] 53 } 54 ] 55 } 56}