mesh-examples/12-14-mesh/Me1052.mesh.json
Sources
- CGAL `PMP.merge_duplicate_polygons_in_polygon_soup` Branch 3 @ line 971 (*duplicate_collection*)
- `MESH_HEAL_COVERAGE.md`.
Description
an 8-triangle polygon soup with a 4-copy group (tri0-tri3 all (0,1,2)) and a 3-copy group (tri5-tri7 all (3,4,5)), plus a clean singleton bridge tri4=(v2,v6,v3). The hash+equality collection step must build both groups correctly before any removal begins, exercising the scan for groups of different sizes.
Reproducer recipe
v0=(0,0,0),v1=(1,0,0),v2=(0.5,1,0) × 4 copies; v3=(2,0,0),v4=(3,0,0),v5=(2.5,1,0) × 3 copies; singleton bridge v6=(1.5,0,0).
Expected kernel behavior
collect two groups of sizes 4 and 3; process each independently.
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 0.0, 36 0.0 37 ] 38 ], 39 "triangles": [ 40 [ 41 0, 42 1, 43 2 44 ], 45 [ 46 0, 47 1, 48 2 49 ], 50 [ 51 0, 52 1, 53 2 54 ], 55 [ 56 0, 57 1, 58 2 59 ], 60 [ 61 2, 62 6, 63 3 64 ], 65 [ 66 3, 67 4, 68 5 69 ], 70 [ 71 3, 72 4, 73 5 74 ], 75 [ 76 3, 77 4, 78 5 79 ] 80 ], 81 "metadata": { 82 "id": "Me1052", 83 "schema_version": 0, 84 "defect_class": "duplicate_triangles", 85 "title": "merge_duplicate_polygons duplicate_collection: 4-copy group A + 3-copy group B; hash+equality scan collects both (Branch 3)", 86 "assertions": [ 87 { 88 "kind": "duplicate_polygon_group", 89 "triangles": [ 90 0, 91 1, 92 2, 93 3 94 ], 95 "n": 4 96 }, 97 { 98 "kind": "duplicate_polygon_group", 99 "triangles": [ 100 5, 101 6, 102 7 103 ], 104 "n": 3 105 } 106 ] 107 } 108}