Me802 — is_polygon_soup_a_polygon_mesh orientation_consistency: t0 and t1 both traverse halfedge v1→v2; fill_edge_map returns INCOMPATIBLE_ORIENTATION (Branch 3)

§12.14 mesh defects (sub-class: polygon-soup-validity / orientation-consistency)

topology

Sources

Description

Two triangles sharing physical edge {v1, v2} but both traversing it in the same directed order (v1→v2). fill_edge_map records each polygon's directed halfedges. When both t0=(v0,v1,v2) and t1=(v3,v1,v2) emit the same directed halfedge v1→v2, the map detects a collision and returns INCOMPATIBLE_ORIENTATION — the soup cannot be given a consistent orientation. The two normals point in opposite Z directions (dot product = -1) confirming the winding inconsistency.

Reproducer recipe

v0=(0,0,0), v1=(1,0,0), v2=(0.5,1,0), v3=(1.5,1,0); t0=(v0,v1,v2), t1=(v3,v1,v2); both emit halfedge v1→v2; assert_adjacent_triangles_inconsistent_winding(0,1).

Expected kernel behavior

Branch 3 fires; fill_edge_map returns INCOMPATIBLE_ORIENTATION for polygon t1; is_polygon_soup_a_polygon_mesh returns false; the soup is rejected as orientation-inconsistent.

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  "triangles": [
25    [
26      0,
27      1,
28      2
29    ],
30    [
31      3,
32      1,
33      2
34    ]
35  ],
36  "metadata": {
37    "id": "Me802",
38    "schema_version": 0,
39    "defect_class": "inconsistent_face_orientation",
40    "title": "is_polygon_soup_a_polygon_mesh orientation_consistency: t0 and t1 both traverse halfedge v1\u2192v2; fill_edge_map returns INCOMPATIBLE_ORIENTATION (Branch 3)",
41    "assertions": [
42      {
43        "kind": "adjacent_triangles_inconsistent_winding",
44        "triangles": [
45          0,
46          1
47        ]
48      }
49    ]
50  }
51}