mesh-examples/12-14-mesh/Me1061.mesh.json
Sources
- CGAL `PMP.merge_duplicate_polygons_in_polygon_soup` Branch 8 @ line 1007 (*treated_skip*)
- `MESH_HEAL_COVERAGE.md`.
Description
Polygon soup with two separate duplicate groups: Group A = {tri 0, tri 1, tri 2} all with key (0,1,2); Group B = {tri 3, tri 4} all with key (2,3,4). Under KEEP_ONE, group A marks tris 1 and 2 as treated. When the outer while-loop then processes group B, the if(treated[polygon_to_remove_id]) continue guard can fire for any polygon whose id was already marked treated by group A's pass. The two-group layout directly exercises the cross-group guard protection.
Reproducer recipe
3 copies of (v0,v1,v2) + 2 copies of (v2,v3,v4) + 1 clean singleton; two assert_duplicate_polygon_group calls.
Expected kernel behavior
treated[] guard fires when processing overlapping polygon-id ranges; group B removal skips any already-treated ids cleanly.
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 1.5, 25 1.0, 26 0.0 27 ], 28 [ 29 0.5, 30 -1.0, 31 0.0 32 ] 33 ], 34 "triangles": [ 35 [ 36 0, 37 1, 38 2 39 ], 40 [ 41 0, 42 1, 43 2 44 ], 45 [ 46 0, 47 1, 48 2 49 ], 50 [ 51 2, 52 3, 53 4 54 ], 55 [ 56 2, 57 3, 58 4 59 ], 60 [ 61 0, 62 5, 63 1 64 ] 65 ], 66 "metadata": { 67 "id": "Me1061", 68 "schema_version": 0, 69 "defect_class": "duplicate_triangles", 70 "title": "duplicate_polygons treated_skip: two groups share polygon-id, second group hits continue", 71 "assertions": [ 72 { 73 "kind": "duplicate_polygon_group", 74 "triangles": [ 75 0, 76 1, 77 2 78 ], 79 "n": 3 80 }, 81 { 82 "kind": "duplicate_polygon_group", 83 "triangles": [ 84 3, 85 4 86 ], 87 "n": 2 88 } 89 ] 90 } 91}