Me562 — loopSubdivision sharp_edge_preservation: t0/t1 share crease edge (v1,v2) with steep dihedral; IS_SHARPEDGE branch triggered (Branch 3)

§12.14 mesh defects (sub-class: loop-subdivision / sharp-crease)

topology

Sources

Description

Three triangles (t0 flat in XY, t1 folded steeply downward, t2 extending t1). t0 normal=(0,0,+1); t1=(v2,v1,v3) normal dot-product with t0 ≈ −0.35 (normals anti-parallel → inconsistent winding). The shared edge (v1,v2) is the crease with a dihedral angle ~110° (far above the 60° IS_SHARPEDGE threshold). t1 and t2 share interior edge (v1,v3) n=2. Euler: V=5, E=7, F=3, chi=1.

Reproducer recipe

v0=(0,0,0), v1=(2,0,0), v2=(1,2,0) flat; v3=(1,−0.5,−3) below plane; v4=(3,−0.5,−1.5) extension; t0=(v0,v1,v2), t1=(v2,v1,v3), t2=(v1,v4,v3); assert_edge_shared(v1,v2,2); adjacent_triangles_inconsistent_winding(t0,t1); euler V=5,E=7,F=3,chi=1.

Expected kernel behavior

Branch 3 fires on edge (v1,v2); IS_SHARPEDGE returns true; detected_sharp is set to 1; subdivision proceeds but sharp-edge warning is logged.

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      -0.5,
21      -3.0
22    ],
23    [
24      3.0,
25      -0.5,
26      -1.5
27    ]
28  ],
29  "triangles": [
30    [
31      0,
32      1,
33      2
34    ],
35    [
36      2,
37      1,
38      3
39    ],
40    [
41      1,
42      4,
43      3
44    ]
45  ],
46  "metadata": {
47    "id": "Me562",
48    "schema_version": 0,
49    "defect_class": "loop_subdivision",
50    "title": "loopSubdivision sharp_edge_preservation: t0 and t1 share crease edge (v1,v2) with steep dihedral; IS_SHARPEDGE branch triggered (Branch 3)",
51    "assertions": [
52      {
53        "kind": "edge_shared_by_n_triangles",
54        "edge": [
55          1,
56          2
57        ],
58        "n": 2
59      },
60      {
61        "kind": "adjacent_triangles_inconsistent_winding",
62        "triangles": [
63          0,
64          1
65        ]
66      },
67      {
68        "kind": "edge_shared_by_n_triangles",
69        "edge": [
70          1,
71          3
72        ],
73        "n": 2
74      },
75      {
76        "kind": "edge_shared_by_n_triangles",
77        "edge": [
78          0,
79          1
80        ],
81        "n": 1
82      },
83      {
84        "kind": "edge_shared_by_n_triangles",
85        "edge": [
86          0,
87          2
88        ],
89        "n": 1
90      },
91      {
92        "kind": "edge_shared_by_n_triangles",
93        "edge": [
94          2,
95          3
96        ],
97        "n": 1
98      },
99      {
100        "kind": "edge_shared_by_n_triangles",
101        "edge": [
102          3,
103          4
104        ],
105        "n": 1
106      },
107      {
108        "kind": "edge_shared_by_n_triangles",
109        "edge": [
110          1,
111          4
112        ],
113        "n": 1
114      },
115      {
116        "kind": "euler_characteristic",
117        "v": 5,
118        "e": 7,
119        "f": 3,
120        "chi": 1
121      }
122    ]
123  }
124}