Me031 — isolated degenerate face among healthy neighbors: flip-candidate branch

§12.14 mesh defects (sub-class: degeneracy/isolated-flip-candidate)

topology

Sources

Description

a single zero-area collinear triangle (face 2) is surrounded by 4 non-degenerate fan triangles. No adjacent degenerate face exists, so `detect_cc_of_degenerate_triangles==false`. CGAL then attempts a longest-edge flip on the isolated face instead of collecting a connected component. Faces 0,1,3,4 are healthy fan triangles around the origin; face 2 = `(hub, collinear_a, collinear_b)` along the X axis.

Reproducer recipe

hub at `(0,0,0)`; 5 outer ring vertices (pentagon at unit radius); 4 normal fan triangles; face 2 uses collinear_a=(1,0,0) and collinear_b=(2,0,0) — degenerate along X.

Expected kernel behavior

detect isolated degenerate face with no degenerate neighbors; attempt longest-edge flip; apply or skip based on flip feasibility.

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.30901699437494745,
15      0.9510565162951535,
16      0.0
17    ],
18    [
19      -0.8090169943749473,
20      0.5877852522924732,
21      0.0
22    ],
23    [
24      -0.8090169943749475,
25      -0.587785252292473,
26      0.0
27    ],
28    [
29      0.30901699437494723,
30      -0.9510565162951536,
31      0.0
32    ],
33    [
34      1.0,
35      0.0,
36      0.0
37    ],
38    [
39      2.0,
40      0.0,
41      0.0
42    ]
43  ],
44  "triangles": [
45    [
46      0,
47      1,
48      2
49    ],
50    [
51      0,
52      2,
53      3
54    ],
55    [
56      0,
57      6,
58      7
59    ],
60    [
61      0,
62      3,
63      4
64    ],
65    [
66      0,
67      4,
68      5
69    ]
70  ],
71  "metadata": {
72    "id": "Me031",
73    "schema_version": 0,
74    "defect_class": "degenerate_triangle",
75    "title": "isolated degenerate face among healthy neighbors \u2014 flip-candidate branch",
76    "assertions": [
77      {
78        "kind": "triangle_area_lt",
79        "triangle": 2,
80        "lt": 1e-12
81      },
82      {
83        "kind": "edge_shared_by_n_triangles",
84        "edge": [
85          0,
86          6
87        ],
88        "n": 1
89      },
90      {
91        "kind": "edge_shared_by_n_triangles",
92        "edge": [
93          0,
94          7
95        ],
96        "n": 1
97      }
98    ]
99  }
100}