mesh-examples/12-14-mesh/Me036.mesh.json
Sources
- CGAL `PMP.merge_duplicate_polygons_in_polygon_soup` Branch 1 @ line 946 (*erase_policy_selection*)
- `MESH_HEAL_COVERAGE.md`.
Description
a polygon soup of 4 triangles contains three copies of the same triangle (0,1,2). With erase_policy=KEEP_ONE the healer retains exactly one and removes two. The erase_policy named-parameter selection branch is exercised.
Reproducer recipe
vertices at (0,0,0), (1,0,0), (0.5,1,0), (1.5,1,0); triangles: (0,1,2)×3 then (1,3,2).
Expected kernel behavior
detect group of 3 identical polygons; apply KEEP_ONE → remove 2 duplicates; polygon count 4→2.
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 1.5, 20 1.0, 21 0.0 22 ] 23 ], 24 "triangles": [ 25 [ 26 0, 27 1, 28 2 29 ], 30 [ 31 0, 32 1, 33 2 34 ], 35 [ 36 0, 37 1, 38 2 39 ], 40 [ 41 1, 42 3, 43 2 44 ] 45 ], 46 "metadata": { 47 "id": "Me036", 48 "schema_version": 0, 49 "defect_class": "duplicate_triangles", 50 "title": "duplicate_polygons KEEP_ONE: three identical triangles, keep one remove two", 51 "assertions": [ 52 { 53 "kind": "duplicate_polygon_group", 54 "triangles": [ 55 0, 56 1, 57 2 58 ], 59 "n": 3 60 } 61 ] 62 } 63}