Me383 — isDoubleFlat_edge_convexity_second: two ridge edges in 4-triangle fan; second triggers Branch 4 (e2 set, nne=2)

§12.14 mesh defects (sub-class: isDoubleFlat / edge-convexity-second)

topology

Sources

Description

Vertex v0=(0,0,0.5) sits at the apex of a fold between a flat base and a raised region. Its 4-triangle fan has exactly two ridge edges — (v0,v1) and (v0,v3) — where the triangles change from flat to raised orientation. The first ridge sets e1 (Branch 2, nne=1); the second ridge sets e2 (Branch 4, nne=2). All 4 fan edges are interior; all outer edges are boundary.

Reproducer recipe

v0=(0,0,0.5), v1=(-1,0,0), v2=(0,1,0), v3=(1,0,0), v4=(0,-1,1); t0=(v1,v2,v0), t1=(v2,v3,v0), t2=(v3,v4,v0), t3=(v4,v1,v0).

Expected kernel behavior

Two ridge edges found; Branch 4 fires on second detection; e2 set; nne=2; algorithm continues to Branch 7 misalignment check.

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.5
7    ],
8    [
9      -1.0,
10      0.0,
11      0.0
12    ],
13    [
14      0.0,
15      1.0,
16      0.0
17    ],
18    [
19      1.0,
20      0.0,
21      0.0
22    ],
23    [
24      0.0,
25      -1.0,
26      1.0
27    ]
28  ],
29  "triangles": [
30    [
31      1,
32      2,
33      0
34    ],
35    [
36      2,
37      3,
38      0
39    ],
40    [
41      3,
42      4,
43      0
44    ],
45    [
46      4,
47      1,
48      0
49    ]
50  ],
51  "metadata": {
52    "id": "Me383",
53    "schema_version": 0,
54    "defect_class": "double_flat_vertex_two_ridges",
55    "title": "isDoubleFlat_edge_convexity_second: v0 has exactly 2 ridge edges; second ridge triggers Branch 4 (e2 set, nne=2)",
56    "assertions": [
57      {
58        "kind": "edge_shared_by_n_triangles",
59        "edge": [
60          0,
61          1
62        ],
63        "n": 2
64      },
65      {
66        "kind": "edge_shared_by_n_triangles",
67        "edge": [
68          0,
69          2
70        ],
71        "n": 2
72      },
73      {
74        "kind": "edge_shared_by_n_triangles",
75        "edge": [
76          0,
77          3
78        ],
79        "n": 2
80      },
81      {
82        "kind": "edge_shared_by_n_triangles",
83        "edge": [
84          0,
85          4
86        ],
87        "n": 2
88      },
89      {
90        "kind": "edge_shared_by_n_triangles",
91        "edge": [
92          1,
93          2
94        ],
95        "n": 1
96      },
97      {
98        "kind": "edge_shared_by_n_triangles",
99        "edge": [
100          2,
101          3
102        ],
103        "n": 1
104      },
105      {
106        "kind": "edge_shared_by_n_triangles",
107        "edge": [
108          3,
109          4
110        ],
111        "n": 1
112      },
113      {
114        "kind": "edge_shared_by_n_triangles",
115        "edge": [
116          1,
117          4
118        ],
119        "n": 1
120      }
121    ]
122  }
123}