Me098 — edge_collapse_orphan_edge_e2: e2 has no neighbors (ta2=NULL), becomes orphan post-collapse

§12.14 mesh defects (sub-class: edge-collapse / orphan-edge-cleanup)

topology

Sources

Description

edge (v0, v1) is interior. t1's neighbor edge e2=(v0,v2) has no opposite triangle (ta2=NULL) — it is a boundary edge. After collapsing v0 onto v1 and removing t1, e2 has no incident triangles and becomes an orphan. MeshFix Branch 14 detects this and frees e2, nulling v3's anchor. v2 lies almost directly above v0 (nearly degenerate e2 in x).

Reproducer recipe

v0=(0,0,0), v1=(1,0,0), v2=(1e-7,1,0), v3=(0.5,-1,0), v4=(1.5,-1,0); t0=(v0,v1,v2) [t1, e2=(v0,v2) boundary], t1=(v0,v3,v1) [t2], ta4=(v1,v4,v3).

Expected kernel behavior

after collapsing (v0,v1): free orphan edge e2 and null v2's anchor edge pointer.

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      1e-07,
15      1.0,
16      0.0
17    ],
18    [
19      0.5,
20      -1.0,
21      0.0
22    ],
23    [
24      1.5,
25      -1.0,
26      0.0
27    ]
28  ],
29  "triangles": [
30    [
31      0,
32      1,
33      2
34    ],
35    [
36      0,
37      3,
38      1
39    ],
40    [
41      1,
42      4,
43      3
44    ]
45  ],
46  "metadata": {
47    "id": "Me098",
48    "schema_version": 0,
49    "defect_class": "near_coincident_vertices",
50    "title": "edge_collapse_orphan_edge_e2: e2 has no neighbors (ta2=NULL), becomes orphan post-collapse",
51    "assertions": [
52      {
53        "kind": "edge_shared_by_n_triangles",
54        "edge": [
55          0,
56          1
57        ],
58        "n": 2
59      },
60      {
61        "kind": "edge_shared_by_n_triangles",
62        "edge": [
63          1,
64          2
65        ],
66        "n": 1
67      },
68      {
69        "kind": "edge_shared_by_n_triangles",
70        "edge": [
71          0,
72          2
73        ],
74        "n": 1
75      },
76      {
77        "kind": "vertex_pair_distance_lt",
78        "pair": [
79          0,
80          2
81        ],
82        "lt": 1.5
83      },
84      {
85        "kind": "edge_shared_by_n_triangles",
86        "edge": [
87          1,
88          3
89        ],
90        "n": 2
91      },
92      {
93        "kind": "edge_shared_by_n_triangles",
94        "edge": [
95          1,
96          4
97        ],
98        "n": 1
99      },
100      {
101        "kind": "edge_shared_by_n_triangles",
102        "edge": [
103          3,
104          4
105        ],
106        "n": 1
107      }
108    ]
109  }
110}