mesh-examples/12-14-mesh/Me043.mesh.json
Sources
- CGAL `PMP.merge_duplicate_polygons_in_polygon_soup` Branch 8 @ line 1007 (*treated_skip*)
- `MESH_HEAL_COVERAGE.md`.
Description
4 identical triangles form one group. When the inner removal loop processes a polygon that was already swapped-to-end (marked treated) by a prior iteration, it hits the if(treated[polygon_to_remove_id]) continue guard and skips it without double-processing.
Reproducer recipe
4 copies of (0,1,2) plus clean triangle; treated[] bit-vector prevents any polygon being swapped twice.
Expected kernel behavior
treated[] guard fires for any polygon already in removal zone; continue skips it 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 0.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 0, 42 1, 43 2 44 ], 45 [ 46 0, 47 3, 48 1 49 ] 50 ], 51 "metadata": { 52 "id": "Me043", 53 "schema_version": 0, 54 "defect_class": "duplicate_triangles", 55 "title": "duplicate_polygons treated_skip: shared polygon in two groups, skip on second pass", 56 "assertions": [ 57 { 58 "kind": "duplicate_polygon_group", 59 "triangles": [ 60 0, 61 1, 62 2, 63 3 64 ], 65 "n": 4 66 } 67 ] 68 } 69}