Me1053 — merge_duplicate_polygons early_exit_empty: 4-triangle partial-tetrahedron soup with all-distinct vertex triples; returns 0 immediately (Branch 4)

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

topology

Sources

Description

a closed 4-triangle tetrahedron mesh where every face has a distinct vertex-index triple. The duplicate-collection step finds zero groups; all_duplicate_polygons.empty() is true; the function returns 0 immediately. All 6 edges are shared by exactly 2 triangles, confirming manifold topology with no repeated face.

Reproducer recipe

v0=(0,0,0), v1=(2,0,0), v2=(1,0,2), v3=(1,2,1); t0=(v0,v1,v2), t1=(v0,v2,v3), t2=(v1,v3,v2), t3=(v0,v3,v1); closed tetrahedron.

Expected kernel behavior

early-exit branch fires; 0 returned; no polygon is swapped or erased.

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      0.0,
16      2.0
17    ],
18    [
19      1.0,
20      2.0,
21      1.0
22    ]
23  ],
24  "triangles": [
25    [
26      0,
27      1,
28      2
29    ],
30    [
31      0,
32      2,
33      3
34    ],
35    [
36      1,
37      3,
38      2
39    ],
40    [
41      0,
42      3,
43      1
44    ]
45  ],
46  "metadata": {
47    "id": "Me1053",
48    "schema_version": 0,
49    "defect_class": "duplicate_triangles",
50    "title": "merge_duplicate_polygons early_exit_empty: 4-triangle partial-tetrahedron soup with all-distinct vertex triples; returns 0 immediately (Branch 4)",
51    "assertions": [
52      {
53        "kind": "edge_shared_by_n_triangles",
54        "edge": [
55          0,
56          2
57        ],
58        "n": 2
59      },
60      {
61        "kind": "edge_shared_by_n_triangles",
62        "edge": [
63          2,
64          3
65        ],
66        "n": 2
67      },
68      {
69        "kind": "edge_shared_by_n_triangles",
70        "edge": [
71          1,
72          3
73        ],
74        "n": 2
75      },
76      {
77        "kind": "edge_shared_by_n_triangles",
78        "edge": [
79          0,
80          3
81        ],
82        "n": 2
83      },
84      {
85        "kind": "edge_shared_by_n_triangles",
86        "edge": [
87          0,
88          1
89        ],
90        "n": 2
91      },
92      {
93        "kind": "edge_shared_by_n_triangles",
94        "edge": [
95          1,
96          2
97        ],
98        "n": 2
99      },
100      {
101        "kind": "euler_characteristic",
102        "v": 4,
103        "e": 6,
104        "f": 4,
105        "chi": 2
106      }
107    ]
108  }
109}