Me212 — cutAndStitch_orientation_inconsistency: adjacent triangles with antiparallel normals

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

topology

Sources

Description

Two triangles share edge (v0,v1) but have opposite winding orders (antiparallel normals). cutAndStitch calls forceNormalConsistence() to unify orientation before stitching. Geometry: v0=(0,0,0), v1=(1,0,0), v2=(0.5,1,0), v3=(0.5,-1,0); t0=(v0,v1,v2) CCW, t1=(v0,v1,v3) CW at shared edge.

Reproducer recipe

two triangles sharing edge (v0,v1) with reversed winding; normal dot product negative.

Expected kernel behavior

forceNormalConsistence() detects and corrects the orientation mismatch.

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": "Me212",
38    "schema_version": 0,
39    "defect_class": "inverted_normal",
40    "title": "cutAndStitch_orientation_inconsistency: adjacent triangles have inconsistent normals",
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}