Me430 — forceNormalConsistence t1-inconsistent: adjacent triangle flipped across shared edge e1; antiparallel normal → t1->invert() (Branch 1)

§12.14 mesh defects (sub-class: inconsistent-face-orientation / adjacent-normal-t1)

topology

Sources

Description

Two triangles sharing edge (v0,v1). Both list the shared edge in the SAME direction (v0→v1), producing antiparallel normals: t0=(v0,v1,v2) has normal +z; t1=(v0,v1,v3) has normal −z. In a correctly-oriented manifold, the second triangle should list the edge in the opposite sense (v1→v0). The same-direction traversal means checkAdjNor(t1) returns false → Branch 1 fires t1->invert(). Shared edge (v0,v1) n=2; four boundary edges n=1.

Reproducer recipe

v0=(0,0,0), v1=(1,0,0), v2=(0.5,1,0), v3=(0.5,-1,0); t0=(v0,v1,v2), t1=(v0,v1,v3); assert_edge_shared(v0,v1,2); assert_adjacent_triangles_inconsistent_winding(0,1); boundary edges n=1.

Expected kernel behavior

Branch 1 fires; t1->invert() reverses t1's winding from (v0,v1,v3) to (v3,v1,v0), aligning its normal with t0's +z normal. r=1 signals a fix was made.

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      0.5,
20      -1.0,
21      0.0
22    ]
23  ],
24  "triangles": [
25    [
26      0,
27      1,
28      2
29    ],
30    [
31      0,
32      1,
33      3
34    ]
35  ],
36  "metadata": {
37    "id": "Me430",
38    "schema_version": 0,
39    "defect_class": "inconsistent_face_orientation",
40    "title": "forceNormalConsistence t1-inconsistent: adjacent triangle flipped across shared edge e1 (Branch 1)",
41    "assertions": [
42      {
43        "kind": "edge_shared_by_n_triangles",
44        "edge": [
45          0,
46          1
47        ],
48        "n": 2
49      },
50      {
51        "kind": "adjacent_triangles_inconsistent_winding",
52        "triangles": [
53          0,
54          1
55        ]
56      },
57      {
58        "kind": "edge_shared_by_n_triangles",
59        "edge": [
60          1,
61          2
62        ],
63        "n": 1
64      },
65      {
66        "kind": "edge_shared_by_n_triangles",
67        "edge": [
68          0,
69          2
70        ],
71        "n": 1
72      },
73      {
74        "kind": "edge_shared_by_n_triangles",
75        "edge": [
76          1,
77          3
78        ],
79        "n": 1
80      },
81      {
82        "kind": "edge_shared_by_n_triangles",
83        "edge": [
84          0,
85          3
86        ],
87        "n": 1
88      }
89    ]
90  }
91}