mesh-examples/12-14-mesh/Me1071.mesh.json
Sources
- CGAL `PMP.merge_duplicate_polygons_in_polygon_soup` Branch 11 @ line 1035 (*final_erase*)
- `MESH_HEAL_COVERAGE.md`.
Description
Polygon soup with two separate duplicate groups: Group A = {tri 0, tri 1} with key (0,1,2) — 2 copies; Group B = {tri 3, tri 4, tri 5} with key (0,1,3) — 3 copies. After the outer while-loop processes both groups and swap_to_end has accumulated 3 removal candidates in the back region, the single polygons.erase(first, polygons.end()) call at line 1035 removes all of them in one O(k) resize. The container shrinks from 6 triangles to 3 (1 survivor per group + 1 clean singleton). Tests that erase() handles the combined back region from multiple groups in one shot.
Reproducer recipe
2 copies of (v0,v1,v2) + 1 clean + 3 copies of (v0,v1,v3); single erase() after both groups processed; result = 3 triangles.
Expected kernel behavior
erase() called exactly once at line 1035; removes 3 polygons from combined back region; result has 3 triangles.
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.0, 25 0.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 3, 42 4, 43 5 44 ] 45 ], 46 "metadata": { 47 "id": "Me1071", 48 "schema_version": 0, 49 "defect_class": "near_coincident_vertex", 50 "title": "filter_stitchable_pairs border-two-edge-exception: two border halfedges on coincident boundary edge; both border \u2192 manifold-safe stitch accepted (Branch 2)", 51 "assertions": [ 52 { 53 "kind": "edge_shared_by_n_triangles", 54 "edge": [ 55 0, 56 1 57 ], 58 "n": 1 59 }, 60 { 61 "kind": "edge_shared_by_n_triangles", 62 "edge": [ 63 0, 64 2 65 ], 66 "n": 1 67 }, 68 { 69 "kind": "edge_shared_by_n_triangles", 70 "edge": [ 71 1, 72 2 73 ], 74 "n": 1 75 }, 76 { 77 "kind": "edge_shared_by_n_triangles", 78 "edge": [ 79 3, 80 4 81 ], 82 "n": 1 83 }, 84 { 85 "kind": "edge_shared_by_n_triangles", 86 "edge": [ 87 3, 88 5 89 ], 90 "n": 1 91 }, 92 { 93 "kind": "edge_shared_by_n_triangles", 94 "edge": [ 95 4, 96 5 97 ], 98 "n": 1 99 }, 100 { 101 "kind": "vertex_pair_distance_lt", 102 "pair": [ 103 1, 104 4 105 ], 106 "lt": 1e-09 107 }, 108 { 109 "kind": "vertex_pair_distance_lt", 110 "pair": [ 111 2, 112 5 113 ], 114 "lt": 1e-09 115 }, 116 { 117 "kind": "vertex_pair_no_shared_triangle", 118 "pair": [ 119 1, 120 4 121 ] 122 }, 123 { 124 "kind": "vertex_pair_no_shared_triangle", 125 "pair": [ 126 2, 127 5 128 ] 129 }, 130 { 131 "kind": "euler_characteristic", 132 "v": 6, 133 "e": 6, 134 "f": 2, 135 "chi": 2 136 } 137 ] 138 } 139}