Me027 — adjacent degenerate faces: two collinear triangles sharing an edge

§12.14 mesh defects (sub-class: degeneracy/adjacent-faces)

topology

Sources

Description

two collinear zero-area triangles share edge `(v1,v2)`. When repair is called on only the first triangle, the sanitize expansion walks `faces_to_visit` and must discover the adjacent degenerate triangle 1 (`is_range_full_mesh` / partial-range expansion branch). Triangle 2 is a non-degenerate control.

Reproducer recipe

four collinear vertices at x=0,1,2,3 (y=z=0); triangle 0 = `(v0,v1,v2)`, triangle 1 = `(v1,v2,v3)`, sharing edge `(1,2)`. Triangle 2 = clean control at y=1.

Expected kernel behavior

discover both adjacent degenerate faces in a single expansion pass; remove as a connected group.

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      2.0,
15      0.0,
16      0.0
17    ],
18    [
19      3.0,
20      0.0,
21      0.0
22    ],
23    [
24      0.0,
25      0.0,
26      0.0
27    ],
28    [
29      1.0,
30      0.0,
31      0.0
32    ],
33    [
34      0.5,
35      1.0,
36      0.0
37    ]
38  ],
39  "triangles": [
40    [
41      0,
42      1,
43      2
44    ],
45    [
46      1,
47      2,
48      3
49    ],
50    [
51      4,
52      5,
53      6
54    ]
55  ],
56  "metadata": {
57    "id": "Me027",
58    "schema_version": 0,
59    "defect_class": "degenerate_triangle",
60    "title": "adjacent degenerate faces: two collinear triangles sharing an edge \u2014 expansion branch",
61    "assertions": [
62      {
63        "kind": "triangle_area_lt",
64        "triangle": 0,
65        "lt": 1e-12
66      },
67      {
68        "kind": "triangle_area_lt",
69        "triangle": 1,
70        "lt": 1e-12
71      },
72      {
73        "kind": "edge_shared_by_n_triangles",
74        "edge": [
75          1,
76          2
77        ],
78        "n": 2
79      }
80    ]
81  }
82}