Me088 — connectivity duplicate triangle edges: two identical triangles with same vertex indices

§12.14 mesh defects (sub-class: connectivity / duplicate triangle edges)

topology

Sources

Description

triangles t0 and t1 both reference vertex set {v0,v1,v2} with the same index triple. MeshFix Branch 12 fires when a triangle has two coincident edges — which happens when two triangles are geometrically identical and the half-edge structure cannot assign t1/t2 consistently. All three edges are shared by exactly 2 triangles, but since both triangles are duplicates, no valid half-edge pairing exists.

Reproducer recipe

v0=(0,0,0), v1=(1,0,0), v2=(0.5,1,0); t0=t1=(v0,v1,v2) exact duplicates.

Expected kernel behavior

detect and remove one of the duplicate triangles; verify edge ownership.

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  "triangles": [
20    [
21      0,
22      1,
23      2
24    ],
25    [
26      0,
27      1,
28      2
29    ]
30  ],
31  "metadata": {
32    "id": "Me088",
33    "schema_version": 0,
34    "defect_class": "duplicate_triangle",
35    "title": "connectivity duplicate triangle edges: t0 and t1 are exact duplicates \u2014 same vertex indices (v0,v1,v2)",
36    "assertions": [
37      {
38        "kind": "duplicate_triangle_pair",
39        "triangles": [
40          0,
41          1
42        ]
43      },
44      {
45        "kind": "edge_shared_by_n_triangles",
46        "edge": [
47          0,
48          1
49        ],
50        "n": 2
51      },
52      {
53        "kind": "edge_shared_by_n_triangles",
54        "edge": [
55          1,
56          2
57        ],
58        "n": 2
59      },
60      {
61        "kind": "edge_shared_by_n_triangles",
62        "edge": [
63          0,
64          2
65        ],
66        "n": 2
67      }
68    ]
69  }
70}