Me041 — duplicate_polygons keep_decision ERASE_ALL: both copies scheduled for removal

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

spec-violation

Sources

Description

with erase_policy=ERASE_ALL the keep-index i is set to 0, meaning ALL copies of a duplicate group are erased including the one that KEEP_ONE would retain. The fixture has two identical triangles; both are scheduled for removal.

Reproducer recipe

two copies of (0,1,2) plus one clean lower triangle; ERASE_ALL removes both leaving only the clean triangle.

Expected kernel behavior

set i=0 for the group; schedule all 2 copies for removal; erase both; result has 1 triangle.

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      0.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      3,
38      1
39    ]
40  ],
41  "metadata": {
42    "id": "Me041",
43    "schema_version": 0,
44    "defect_class": "duplicate_triangles",
45    "title": "duplicate_polygons keep_decision ERASE_ALL: both copies scheduled for removal",
46    "assertions": [
47      {
48        "kind": "duplicate_polygon_group",
49        "triangles": [
50          0,
51          1
52        ],
53        "n": 2
54      }
55    ]
56  }
57}