Me159 — flipNormals_edge_unmark_cleanup: edge bit 6 cleared on all edges in second cleanup pass

§12.14 mesh defects (sub-class: flip-normals / edge unmark cleanup)

topology

Sources

Description

Three CW triangles sharing a hub vertex. After pass 1 flips all triangles and marks all edge flip bits, pass 2 fires Branch 10 to unmark bit 6 on e1, e2, and e3 of each triangle, completing the cleanup.

Reproducer recipe

hub=(0,0,0), v0=(1,0,0), v1=(0,1,0), v2=(-1,0.5,0); t0=(hub,v1,v0) CW, t1=(hub,v2,v1) CW, t2=(hub,v2,v0) CW; all hub spokes interior.

Expected kernel behavior

Branch 10 clears bit 6 on all three edges of each flipped triangle in pass 2.

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.0,
15      1.0,
16      0.0
17    ],
18    [
19      -1.0,
20      0.5,
21      0.0
22    ]
23  ],
24  "triangles": [
25    [
26      0,
27      2,
28      1
29    ],
30    [
31      0,
32      3,
33      2
34    ],
35    [
36      0,
37      3,
38      1
39    ]
40  ],
41  "metadata": {
42    "id": "Me159",
43    "schema_version": 0,
44    "defect_class": "inverted_normals",
45    "title": "flipNormals_edge_unmark_cleanup: edge bit 6 cleared on all edges in second cleanup pass",
46    "assertions": [
47      {
48        "kind": "triangle_normal_z_negative",
49        "triangle": 0
50      },
51      {
52        "kind": "triangle_normal_z_negative",
53        "triangle": 1
54      },
55      {
56        "kind": "triangle_normal_z_negative",
57        "triangle": 2
58      },
59      {
60        "kind": "edge_shared_by_n_triangles",
61        "edge": [
62          0,
63          1
64        ],
65        "n": 2
66      },
67      {
68        "kind": "edge_shared_by_n_triangles",
69        "edge": [
70          0,
71          2
72        ],
73        "n": 2
74      },
75      {
76        "kind": "edge_shared_by_n_triangles",
77        "edge": [
78          0,
79          3
80        ],
81        "n": 2
82      },
83      {
84        "kind": "edge_shared_by_n_triangles",
85        "edge": [
86          1,
87          2
88        ],
89        "n": 1
90      },
91      {
92        "kind": "edge_shared_by_n_triangles",
93        "edge": [
94          2,
95          3
96        ],
97        "n": 1
98      },
99      {
100        "kind": "edge_shared_by_n_triangles",
101        "edge": [
102          1,
103          3
104        ],
105        "n": 1
106      }
107    ]
108  }
109}