Me554 — checkAndRepair::rebuildConnectivity DEGENERATE_TRIANGLE_DUPLICATE_VERTEX: t2=(r0,r2,r3) with r0==r2 at (0,0,0); v1==v2 after unification; triangle discarded (Branch 5)

§12.14 mesh defects (sub-class: rebuild-connectivity / degenerate-triangle-duplicate-vertex)

topology

Sources

Description

Two valid triangles (t0, t1) plus one collapsed/degenerate triangle t2. In t2, vertices r0 and r2 share identical coordinates (0,0,0) but are distinct mesh indices. After Branch 2 unification (r2->info=r0), the triangle rebuild loop resolves both to r0, yielding v1==v2 for t2. The pairwise-distinct check fails and t2 is discarded rather than added to the rebuilt mesh → Branch 5 fires. The valid triangles share edge (r1,r3) (n=2); four boundary edges n=1; t2 has zero area.

Reproducer recipe

r0=(0,0,0), r1=(2,0,0), r2=(0,0,0) [=r0], r3=(1,2,0), r4=(3,2,0); t0=(r0,r1,r3), t1=(r1,r4,r3), t2=(r0,r2,r3) [degenerate]; assert_edge_shared(r1,r3,2); assert_edge_shared(r0,r3,2) [shared by t0 and degenerate t2]; other boundary edges n=1; triangle_area_lt(t2,1e-9); vertex_pair_distance_lt(r0,r2,1e-9).

Expected kernel behavior

Branch 5 fires for t2; v1==v2 after unification (both r0); triangle is silently skipped; rebuilt mesh contains only t0 and t1.

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      0.0,
15      0.0,
16      0.0
17    ],
18    [
19      1.0,
20      2.0,
21      0.0
22    ],
23    [
24      3.0,
25      2.0,
26      0.0
27    ]
28  ],
29  "triangles": [
30    [
31      0,
32      1,
33      3
34    ],
35    [
36      1,
37      4,
38      3
39    ],
40    [
41      0,
42      2,
43      3
44    ]
45  ],
46  "metadata": {
47    "id": "Me554",
48    "schema_version": 0,
49    "defect_class": "degenerate_triangle",
50    "title": "checkAndRepair::rebuildConnectivity DEGENERATE_TRIANGLE_DUPLICATE_VERTEX: t2=(r0,r2,r3) with r0==r2 at (0,0,0); v1==v2 after unification; triangle discarded (Branch 5)",
51    "assertions": [
52      {
53        "kind": "edge_shared_by_n_triangles",
54        "edge": [
55          1,
56          3
57        ],
58        "n": 2
59      },
60      {
61        "kind": "edge_shared_by_n_triangles",
62        "edge": [
63          0,
64          1
65        ],
66        "n": 1
67      },
68      {
69        "kind": "edge_shared_by_n_triangles",
70        "edge": [
71          0,
72          3
73        ],
74        "n": 2
75      },
76      {
77        "kind": "edge_shared_by_n_triangles",
78        "edge": [
79          1,
80          4
81        ],
82        "n": 1
83      },
84      {
85        "kind": "edge_shared_by_n_triangles",
86        "edge": [
87          3,
88          4
89        ],
90        "n": 1
91      },
92      {
93        "kind": "triangle_area_lt",
94        "triangle": 2,
95        "lt": 1e-09
96      },
97      {
98        "kind": "vertex_pair_distance_lt",
99        "pair": [
100          0,
101          2
102        ],
103        "lt": 1e-09
104      }
105    ]
106  }
107}