Me091 — edge_collapse_degenerate_t1_side: collapsing edge creates duplicate triangle on t1 side

§12.14 mesh defects (sub-class: edge-collapse / degenerate-double-triangle)

topology

Sources

Description

edge (v0, v1) is a boundary edge; the two neighbors of the t1 triangle (ta1 and ta2) both have the same apex vertex (v3). Collapsing v0 onto v1 would cause ta1 and ta2 to become identical triangles — a degenerate duplicate. MeshFix detects this via `ta1->oppositeVertex(e1) == ta2->oppositeVertex(e2)` and returns NULL.

Reproducer recipe

v0=(0,0,0), v1=(1,0,0), v2=(0.5,1,0), v3=(0.5,-1,0); t0=(v0,v1,v2) [t1]; ta1=(v1,v3,v2); ta2=(v2,v3,v0); v4=(1.5,-2,0) extra vertex.

Expected kernel behavior

block the collapse; merging would produce a duplicate face.

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      1.5,
25      -2.0,
26      0.0
27    ]
28  ],
29  "triangles": [
30    [
31      0,
32      1,
33      2
34    ],
35    [
36      1,
37      3,
38      2
39    ],
40    [
41      2,
42      3,
43      0
44    ],
45    [
46      1,
47      4,
48      3
49    ]
50  ],
51  "metadata": {
52    "id": "Me091",
53    "schema_version": 0,
54    "defect_class": "edge_collapse_would_duplicate",
55    "title": "edge_collapse_degenerate_t1_side: collapsing edge creates duplicate triangle on t1 side",
56    "assertions": [
57      {
58        "kind": "edge_shared_by_n_triangles",
59        "edge": [
60          0,
61          1
62        ],
63        "n": 1
64      },
65      {
66        "kind": "edge_shared_by_n_triangles",
67        "edge": [
68          1,
69          2
70        ],
71        "n": 2
72      },
73      {
74        "kind": "edge_shared_by_n_triangles",
75        "edge": [
76          0,
77          2
78        ],
79        "n": 2
80      },
81      {
82        "kind": "vertex_pair_distance_lt",
83        "pair": [
84          0,
85          1
86        ],
87        "lt": 2.0
88      }
89    ]
90  }
91}