Me096 — edge_collapse_adjacency_repair: near-coincident vertices with bilateral neighbors

§12.14 mesh defects (sub-class: edge-collapse / triangle-adjacency-repair)

topology

Sources

Description

v0 and v1 are 2e-6 apart. The collapse edge is interior, with neighbors on both sides: ta1 is adjacent to t1 on the (v1,v2) edge, and ta4 is adjacent to t2 on the (v1,v3) edge. After collapse, these neighbors must be re-wired to each other through updated adjacency pointers. This exercises the bilateral adjacency-repair branch.

Reproducer recipe

v0=(0,0,0), v1=(2e-6,0,0), v2=(0,1,0), v3=(0,-1,0), v4=(1,1,0), v5=(1,-1,0); t0=(v0,v1,v2) [t1], t1=(v0,v3,v1) [t2], ta1=(v1,v4,v2), ta4=(v3,v1,v5).

Expected kernel behavior

merge v0 into v1; re-wire ta1 and ta4 via updated e2/e3 adjacency.

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      2e-06,
10      0.0,
11      0.0
12    ],
13    [
14      0.0,
15      1.0,
16      0.0
17    ],
18    [
19      0.0,
20      -1.0,
21      0.0
22    ],
23    [
24      1.0,
25      1.0,
26      0.0
27    ],
28    [
29      1.0,
30      -1.0,
31      0.0
32    ]
33  ],
34  "triangles": [
35    [
36      0,
37      1,
38      2
39    ],
40    [
41      0,
42      3,
43      1
44    ],
45    [
46      1,
47      4,
48      2
49    ],
50    [
51      3,
52      1,
53      5
54    ]
55  ],
56  "metadata": {
57    "id": "Me096",
58    "schema_version": 0,
59    "defect_class": "near_coincident_vertices",
60    "title": "edge_collapse_adjacency_repair: near-coincident vertices with bilateral neighbors",
61    "assertions": [
62      {
63        "kind": "vertex_pair_distance_lt",
64        "pair": [
65          0,
66          1
67        ],
68        "lt": 1e-05
69      },
70      {
71        "kind": "edge_shared_by_n_triangles",
72        "edge": [
73          0,
74          1
75        ],
76        "n": 2
77      },
78      {
79        "kind": "edge_shared_by_n_triangles",
80        "edge": [
81          1,
82          2
83        ],
84        "n": 2
85      },
86      {
87        "kind": "edge_shared_by_n_triangles",
88        "edge": [
89          1,
90          3
91        ],
92        "n": 2
93      }
94    ]
95  }
96}