mesh-examples/12-14-mesh/Me042.mesh.json
Sources
- CGAL `PMP.merge_duplicate_polygons_in_polygon_soup` Branch 7 @ line 1004 (*removal_iteration*)
- `MESH_HEAL_COVERAGE.md`.
Description
a group of 4 identical triangles forces the inner for-loop (for(; i<duplicate_polygons.size(); ++i)) to iterate 3 times under KEEP_ONE (i starts at 1, removes indices at positions 1, 2, 3 while keeping position 0).
Reproducer recipe
4 copies of (0,1,2) plus one clean neighbour; the inner removal loop body fires 3 times.
Expected kernel behavior
inner loop iterates 3 times; 3 polygons swapped-to-end; erase reduces count from 5 to 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 0, 42 1, 43 2 44 ], 45 [ 46 1, 47 3, 48 2 49 ] 50 ], 51 "metadata": { 52 "id": "Me042", 53 "schema_version": 0, 54 "defect_class": "duplicate_triangles", 55 "title": "duplicate_polygons removal_iteration: 4-copy group, inner loop runs 3 times", 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}