mesh-examples/12-14-mesh/Me1051.mesh.json
Sources
- CGAL `PMP.merge_duplicate_polygons_in_polygon_soup` Branch 2 @ line 955 (*orientation_requirement*)
- `MESH_HEAL_COVERAGE.md`.
Description
a 5-triangle soup with two independent reversed-winding pairs. Pair A: tri0=(v0,v1,v2) CCW and tri1=(v0,v2,v1) CW. Pair B: tri2=(v3,v4,v5) CCW and tri3=(v3,v5,v4) CW. With require_same_orientation=false both pairs are merged; with require_same_orientation=true neither is merged. A clean singleton tri4=(v0,v1,v6) exercises no duplicate path.
Reproducer recipe
left pair v0=(0,0,0),v1=(1,0,0),v2=(0.5,1,0); right pair v3=(2,0,0),v4=(3,0,0),v5=(2.5,1,0); singleton v6=(1.5,-1,0); two CCW+CW triangle pairs.
Expected kernel behavior
same_orientation flag consulted per-polygon-pair; false → treat reversed copies as duplicates; true → treat as distinct; two pairs present to stress the flag.
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 2.0, 20 0.0, 21 0.0 22 ], 23 [ 24 3.0, 25 0.0, 26 0.0 27 ], 28 [ 29 2.5, 30 1.0, 31 0.0 32 ], 33 [ 34 1.5, 35 -1.0, 36 0.0 37 ] 38 ], 39 "triangles": [ 40 [ 41 0, 42 1, 43 2 44 ], 45 [ 46 0, 47 2, 48 1 49 ], 50 [ 51 3, 52 4, 53 5 54 ], 55 [ 56 3, 57 5, 58 4 59 ], 60 [ 61 0, 62 1, 63 6 64 ] 65 ], 66 "metadata": { 67 "id": "Me1051", 68 "schema_version": 0, 69 "defect_class": "duplicate_triangles", 70 "title": "merge_duplicate_polygons orientation_requirement: two reversed-winding pairs; same_orientation flag controls merge (Branch 2)", 71 "assertions": [ 72 { 73 "kind": "reversed_polygon_pair", 74 "triangles": [ 75 0, 76 1 77 ] 78 }, 79 { 80 "kind": "reversed_polygon_pair", 81 "triangles": [ 82 2, 83 3 84 ] 85 } 86 ] 87 } 88}