Me1175 — Basic_TMesh.forceNormalConsistence orientation_conflict: antiparallel normals on shared edge fire seam cut; inconsistent winding (Branch 3)

§12.14 mesh defects (sub-class: inverted_normal / force-normal-consistence-seam)

topology

Sources

Description

Two adjacent triangles sharing edge v1-v2 with opposite orientations — t0=(v0,v1,v2) has normal +Z (CCW) while t1=(v2,v1,v3) has normal -Z (CW). When forceNormalConsistence propagates from t0, it computes orientation products tmp1 and tmp2; tmp1*tmp2 < 0 (Branch 3 fires). A new edge is created to cut the seam, and wrn is incremented. V=4, E=5, F=2, chi=1.

Reproducer recipe

v0=(0,0,0), v1=(1,0,0), v2=(0.5,1,0), v3=(0,1,0); t0=(v0,v1,v2) CCW +Z, t1=(v2,v1,v3) CW -Z; shared edge v1-v2 n=2; adjacent normals antiparallel; euler V=4,E=5,F=2,chi=1.

Expected kernel behavior

Branch 3 fires; tmp1*tmp2 < 0 for shared edge; newEdge(e->v2,e->v1) creates seam edge; wrn incremented; r|=2 on return.

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.0,
20      1.0,
21      0.0
22    ]
23  ],
24  "triangles": [
25    [
26      0,
27      1,
28      2
29    ],
30    [
31      2,
32      1,
33      3
34    ]
35  ],
36  "metadata": {
37    "id": "Me1175",
38    "schema_version": 0,
39    "defect_class": "inverted_normal",
40    "title": "Basic_TMesh.forceNormalConsistence orientation_conflict: antiparallel normals on shared edge fire seam cut; inconsistent winding (Branch 3)",
41    "assertions": [
42      {
43        "kind": "edge_shared_by_n_triangles",
44        "edge": [
45          1,
46          2
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          0,
61          1
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          2,
85          3
86        ],
87        "n": 1
88      },
89      {
90        "kind": "euler_characteristic",
91        "v": 4,
92        "e": 5,
93        "f": 2,
94        "chi": 1
95      }
96    ]
97  }
98}