Me1054 — merge_duplicate_polygons duplicate_group_iteration: 4 independent duplicate pairs; outer while loop iterates 4 times (Branch 5)

§12.14 mesh defects (sub-class: topology/duplicate)

topology

Sources

Description

an 8-triangle polygon soup with 4 independent duplicate pairs: group A={tri0,tri1} both (a0,a1,a2), group B={tri2,tri3} both (b0,b1,b2), group C={tri4,tri5} both (c0,c1,c2), group D={tri6,tri7} both (d0,d1,d2). Forces the outer while(!all_duplicate_polygons.empty()) loop to iterate 4 times (one per group). More groups than Me040's 3 to provide stronger iteration coverage.

Reproducer recipe

4 disjoint triangle shapes at x=0,2,4,6, each duplicated; no singletons.

Expected kernel behavior

outer loop iterates 4 times; 8 triangles reduced to 4.

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      3.0,
25      0.0,
26      0.0
27    ],
28    [
29      2.5,
30      1.0,
31      0.0
32    ],
33    [
34      4.0,
35      0.0,
36      0.0
37    ],
38    [
39      5.0,
40      0.0,
41      0.0
42    ],
43    [
44      4.5,
45      1.0,
46      0.0
47    ],
48    [
49      6.0,
50      0.0,
51      0.0
52    ],
53    [
54      7.0,
55      0.0,
56      0.0
57    ],
58    [
59      6.5,
60      1.0,
61      0.0
62    ]
63  ],
64  "triangles": [
65    [
66      0,
67      1,
68      2
69    ],
70    [
71      0,
72      1,
73      2
74    ],
75    [
76      3,
77      4,
78      5
79    ],
80    [
81      3,
82      4,
83      5
84    ],
85    [
86      6,
87      7,
88      8
89    ],
90    [
91      6,
92      7,
93      8
94    ],
95    [
96      9,
97      10,
98      11
99    ],
100    [
101      9,
102      10,
103      11
104    ]
105  ],
106  "metadata": {
107    "id": "Me1054",
108    "schema_version": 0,
109    "defect_class": "duplicate_triangles",
110    "title": "merge_duplicate_polygons duplicate_group_iteration: 4 independent duplicate pairs; outer while loop iterates 4 times (Branch 5)",
111    "assertions": [
112      {
113        "kind": "duplicate_polygon_group",
114        "triangles": [
115          0,
116          1
117        ],
118        "n": 2
119      },
120      {
121        "kind": "duplicate_polygon_group",
122        "triangles": [
123          2,
124          3
125        ],
126        "n": 2
127      },
128      {
129        "kind": "duplicate_polygon_group",
130        "triangles": [
131          4,
132          5
133        ],
134        "n": 2
135      },
136      {
137        "kind": "duplicate_polygon_group",
138        "triangles": [
139          6,
140          7
141        ],
142        "n": 2
143      }
144    ]
145  }
146}