mesh-examples/12-14-mesh/Me039.mesh.json
Sources
- CGAL `PMP.merge_duplicate_polygons_in_polygon_soup` Branch 4 @ line 973 (*early_exit_empty*)
- `MESH_HEAL_COVERAGE.md`.
Description
a clean 3-triangle manifold patch with entirely distinct vertex sets. The duplicate collector finds no groups; the function immediately returns 0 without entering any removal loop. Exercises the fast-path branch.
Reproducer recipe
4 vertices forming a rectangular patch split into 3 distinct triangles; no shared triple.
Expected kernel behavior
find no duplicate polygons; return 0 immediately without any swap or erase.
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 1.0, 15 1.0, 16 0.0 17 ], 18 [ 19 0.0, 20 1.0, 21 0.0 22 ] 23 ], 24 "triangles": [ 25 [ 26 0, 27 1, 28 2 29 ], 30 [ 31 0, 32 2, 33 3 34 ], 35 [ 36 1, 37 3, 38 2 39 ] 40 ], 41 "metadata": { 42 "id": "Me039", 43 "schema_version": 0, 44 "defect_class": "duplicate_triangles", 45 "title": "duplicate_polygons early_exit_empty: all-distinct polygon soup, no duplicates", 46 "assertions": [ 47 { 48 "kind": "edge_shared_by_n_triangles", 49 "edge": [ 50 0, 51 2 52 ], 53 "n": 2 54 } 55 ] 56 } 57}