Me733 — checkAndRepair::meshclean REMAINING_DEGENERACY_AFTER_SUCCESS: residual zero-area collinear face after ni && nd succeed; ni set false (branch 4)

§12.14 mesh defects (sub-class: degenerate-triangle / residual-post-repair)

spec-violation

Sources

Description

Five vertices; three triangles. t0=(v0,v1,v2) is the clean base (area=1.0); t1=(v0,v3,v4) is the degenerate residual (v0=(0,0,0), v3=(0.5,0,0), v4=(1.5,0,0) all collinear at Y=0 → area=0); t2=(v3,v1,v2) is a non-degenerate bridge. Both strongDegeneracyRemoval and strongIntersectionRemoval return true (no SI, and t1's topology causes the degeneracy removal to skip it as a boundary artifact). After `if (ni && nd)` fires, isExactlyDegenerate(t1) returns true → ni set to false → Branch 4 fires → return false (incomplete).

Reproducer recipe

v0=(0,0,0), v1=(2,0,0), v2=(1,1,0), v3=(0.5,0,0), v4=(1.5,0,0); t0=(v0,v1,v2) clean, t1=(v0,v3,v4) degenerate [area=0], t2=(v3,v1,v2) clean; assert_triangle_area_lt(1, 1e-9); boundary edges (v0,v3) and (v3,v4) n=1.

Expected kernel behavior

Both passes return true (ni=nd=true); `if (ni && nd)` branch fires; isExactlyDegenerate finds t1 is degenerate; ni set to false; meshclean returns false (residual degeneracy detected).

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      1.0,
15      1.0,
16      0.0
17    ],
18    [
19      0.5,
20      0.0,
21      0.0
22    ],
23    [
24      1.5,
25      0.0,
26      0.0
27    ]
28  ],
29  "triangles": [
30    [
31      0,
32      1,
33      2
34    ],
35    [
36      0,
37      3,
38      4
39    ],
40    [
41      3,
42      1,
43      2
44    ]
45  ],
46  "metadata": {
47    "id": "Me733",
48    "schema_version": 0,
49    "defect_class": "degenerate_triangle",
50    "title": "meshclean REMAINING_DEGENERACY_AFTER_SUCCESS: zero-area residual collinear face after ni && nd succeed; ni set false (branch 4)",
51    "assertions": [
52      {
53        "kind": "triangle_area_lt",
54        "triangle": 1,
55        "lt": 1e-09
56      },
57      {
58        "kind": "vertex_pair_distance_lt",
59        "pair": [
60          0,
61          3
62        ],
63        "lt": 1.0
64      },
65      {
66        "kind": "vertex_pair_distance_lt",
67        "pair": [
68          3,
69          4
70        ],
71        "lt": 1.1
72      },
73      {
74        "kind": "edge_shared_by_n_triangles",
75        "edge": [
76          0,
77          3
78        ],
79        "n": 1
80      },
81      {
82        "kind": "edge_shared_by_n_triangles",
83        "edge": [
84          3,
85          4
86        ],
87        "n": 1
88      }
89    ]
90  }
91}