Me436 — forceNormalConsistence non-orientable-mesh: wrn=2>0 from two seam cuts → topology dirty, r|=2 (Branch 7)

§12.14 mesh defects (sub-class: non-orientable-mesh / topology-dirty)

topology

Sources

Description

Six triangles and 6 vertices forming two independent non-orientable seam pairs (wrn accumulates to 2). Seam A: edge (v0,v1) shared by t0=(v0,v1,v2) [+z] and t1=(v0,v1,v3) [−z] — same-direction traversal (Branch 5 fires, wrn++). Seam B: edge (v4,v5) shared by t3=(v4,v5,v2) [+z] and t4=(v4,v5,v3) [−z] — same-direction traversal (Branch 5 fires again, wrn++). Connector triangles t2=(v1,v2,v3) and t5=(v5,v2,v3) complete the mesh. After processing all edges, wrn=2>0 → Branch 7 fires: topology is marked dirty and r|=2 is returned. Each seam produces antiparallel normals confirmed by the oracle.

Reproducer recipe

v0=(0,0,0), v1=(2,0,0), v2=(1,2,0), v3=(1,-2,0), v4=(5,0,0), v5=(7,0,0); t0=(v0,v1,v2), t1=(v0,v1,v3), t2=(v1,v2,v3), t3=(v4,v5,v2), t4=(v4,v5,v3), t5=(v5,v2,v3); assert_edge_shared(v0,v1,2); assert_edge_shared(v4,v5,2); assert_adjacent_triangles_inconsistent_winding(0,1); assert_adjacent_triangles_inconsistent_winding(3,4).

Expected kernel behavior

Branch 5 fires twice (once per seam edge), incrementing wrn to 2. After the edge loop, Branch 7 fires: mesh topology is marked dirty and the return value has bit 2 set (r |= 2) indicating a non-orientable mesh.

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      2.0,
16      0.0
17    ],
18    [
19      1.0,
20      -2.0,
21      0.0
22    ],
23    [
24      5.0,
25      0.0,
26      0.0
27    ],
28    [
29      7.0,
30      0.0,
31      0.0
32    ]
33  ],
34  "triangles": [
35    [
36      0,
37      1,
38      2
39    ],
40    [
41      0,
42      1,
43      3
44    ],
45    [
46      1,
47      2,
48      3
49    ],
50    [
51      4,
52      5,
53      2
54    ],
55    [
56      4,
57      5,
58      3
59    ],
60    [
61      5,
62      2,
63      3
64    ]
65  ],
66  "metadata": {
67    "id": "Me436",
68    "schema_version": 0,
69    "defect_class": "non_orientable_mesh",
70    "title": "forceNormalConsistence non-orientable-mesh: wrn=2>0 from two seam edges \u2192 topology dirty, r|=2 (Branch 7)",
71    "assertions": [
72      {
73        "kind": "edge_shared_by_n_triangles",
74        "edge": [
75          0,
76          1
77        ],
78        "n": 2
79      },
80      {
81        "kind": "edge_shared_by_n_triangles",
82        "edge": [
83          4,
84          5
85        ],
86        "n": 2
87      },
88      {
89        "kind": "adjacent_triangles_inconsistent_winding",
90        "triangles": [
91          0,
92          1
93        ]
94      },
95      {
96        "kind": "adjacent_triangles_inconsistent_winding",
97        "triangles": [
98          3,
99          4
100        ]
101      },
102      {
103        "kind": "edge_shared_by_n_triangles",
104        "edge": [
105          1,
106          2
107        ],
108        "n": 2
109      },
110      {
111        "kind": "edge_shared_by_n_triangles",
112        "edge": [
113          1,
114          3
115        ],
116        "n": 2
117      },
118      {
119        "kind": "edge_shared_by_n_triangles",
120        "edge": [
121          0,
122          2
123        ],
124        "n": 1
125      },
126      {
127        "kind": "edge_shared_by_n_triangles",
128        "edge": [
129          0,
130          3
131        ],
132        "n": 1
133      },
134      {
135        "kind": "edge_shared_by_n_triangles",
136        "edge": [
137          2,
138          3
139        ],
140        "n": 2
141      },
142      {
143        "kind": "edge_shared_by_n_triangles",
144        "edge": [
145          2,
146          5
147        ],
148        "n": 2
149      },
150      {
151        "kind": "edge_shared_by_n_triangles",
152        "edge": [
153          3,
154          5
155        ],
156        "n": 2
157      },
158      {
159        "kind": "edge_shared_by_n_triangles",
160        "edge": [
161          2,
162          4
163        ],
164        "n": 1
165      },
166      {
167        "kind": "edge_shared_by_n_triangles",
168        "edge": [
169          3,
170          4
171        ],
172        "n": 1
173      }
174    ]
175  }
176}