Me1055 — merge_duplicate_polygons keep_decision KEEP_ONE: 5-copy group; i=1 retains copy 0, removes copies 1-4 (Branch 6)

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

spec-violation

Sources

Description

a 6-triangle polygon soup with a 5-copy group of triangle (v0,v1,v2) plus a clean singleton. With erase_policy=KEEP_ONE, the keep_decision branch sets i=1 (the KEEP_ONE arm of the ternary), retaining copy 0 and scheduling copies 1-4 for removal. Larger group (5 copies) than Me041 (2 copies) to emphasize that i=1 regardless of group size.

Reproducer recipe

v0=(0,0,0), v1=(2,0,0), v2=(1,2,0); 5 identical triangles (v0,v1,v2); clean lower singleton (v0,v1,v3) where v3=(1,-1.5,0).

Expected kernel behavior

keep_decision branch fires; i set to 1; inner loop removes 4 copies (indices 1-4); result: 2 triangles remain.

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      2.0,
10      0.0,
11      0.0
12    ],
13    [
14      1.0,
15      2.0,
16      0.0
17    ],
18    [
19      1.0,
20      -1.5,
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      0,
52      1,
53      3
54    ]
55  ],
56  "metadata": {
57    "id": "Me1055",
58    "schema_version": 0,
59    "defect_class": "duplicate_triangles",
60    "title": "merge_duplicate_polygons keep_decision KEEP_ONE: 5-copy group; i=1 retains copy 0, removes copies 1-4 (Branch 6)",
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}