mesh-examples/12-14-mesh/Me1060.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 5 identical triangles all sharing canonical vertex-index tuple (0,1,2) forces the inner removal for-loop (for(; i<duplicate_polygons.size(); ++i)) to iterate 4 times under KEEP_ONE — i starts at 1, removing positions 1-4 while keeping position 0. The 6-triangle soup shrinks to 2 after merging (1 kept + 1 clean neighbour).
Reproducer recipe
5 copies of (0,1,2) plus one clean neighbour triangle (1,3,2); the inner loop body fires 4 times, one per removal candidate.
Expected kernel behavior
inner loop iterates 4 times; 4 polygons swapped-to-end; erase reduces count from 6 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 0, 47 1, 48 2 49 ], 50 [ 51 1, 52 3, 53 2 54 ] 55 ], 56 "metadata": { 57 "id": "Me1060", 58 "schema_version": 0, 59 "defect_class": "duplicate_triangles", 60 "title": "duplicate_polygons removal_iteration: 5-copy group, inner loop runs 4 times", 61 "assertions": [ 62 { 63 "kind": "duplicate_polygon_group", 64 "triangles": [ 65 0, 66 1, 67 2, 68 3, 69 4 70 ], 71 "n": 5 72 } 73 ] 74 } 75}