Me178 — orient orientation_reversal: unoriented CW neighbor reversed by inverse_orientation to match CCW seed

§12.14 mesh defects (sub-class: orientation / orientation reversal)

spec-violation

Sources

Description

A 3-triangle chain — t0 (CCW seed), t1 (CW, adjacent to t0, the reversal target), t2 (CCW, adjacent to t1). When the DFS pops t0 and walks to t1, t1 is not yet oriented and its winding is inconsistent. Branch 9 fires: inverse_orientation(t1) reverses it in-place and pushes it onto the DFS stack.

Reproducer recipe

v0=(0,0,0), v1=(1,0,0), v2=(0.5,1,0), v3=(1.5,1,0), v4=(2,0,0); t0=(v0,v1,v2) CCW; t1=(v1,v0,v3) CW; t2=(v1,v4,v3) CCW.

Expected kernel behavior

inverse_orientation applied to t1; t1 winding reversed to match t0; t1 pushed onto DFS stack; t2 then oriented consistently from t1.

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.5,
15      1.0,
16      0.0
17    ],
18    [
19      1.5,
20      1.0,
21      0.0
22    ],
23    [
24      2.0,
25      0.0,
26      0.0
27    ]
28  ],
29  "triangles": [
30    [
31      0,
32      1,
33      2
34    ],
35    [
36      1,
37      0,
38      3
39    ],
40    [
41      1,
42      4,
43      3
44    ]
45  ],
46  "metadata": {
47    "id": "Me178",
48    "schema_version": 0,
49    "defect_class": "inconsistent_winding",
50    "title": "orient orientation_reversal: unoriented CW neighbor reversed by inverse_orientation to match CCW seed",
51    "assertions": [
52      {
53        "kind": "edge_shared_by_n_triangles",
54        "edge": [
55          0,
56          1
57        ],
58        "n": 2
59      },
60      {
61        "kind": "adjacent_triangles_inconsistent_winding",
62        "triangles": [
63          0,
64          1
65        ]
66      },
67      {
68        "kind": "edge_shared_by_n_triangles",
69        "edge": [
70          1,
71          3
72        ],
73        "n": 2
74      }
75    ]
76  }
77}