Me1022 — compatible_orientations nesting-constraint detector: nesting_levels[child]==parent+1 direct parent-child relationship

§12.14 mesh defects (sub-class: orientation/nesting-constraint/nesting-level)

topology

Sources

Description

Two closed tetrahedral components at distinct nesting levels. The outer tetrahedron (edge length 6) is the root component at nesting level 0. The inner tetrahedron (edge length 0.6) is directly nested inside at nesting level 1. No intermediate shell exists between them — the nesting level difference is exactly +1, satisfying `nesting_levels[child] == nesting_levels[parent] + 1`. Branch 3 (*direct-nesting-level-match*) fires and the detector marks faces for potential winding-order flip to achieve orientation compatibility across the nesting boundary.

Reproducer recipe

Outer: v0=(0,0,0), v1=(6,0,0), v2=(3,5.196,0), v3=(3,1.732,4.899), four outward faces. Inner: i0=(2.7,1.732,1.225), i1=(3.3,1.732,1.225), i2=(3.0,2.252,1.225), i3=(3.0,1.924,1.714), centered at outer centroid. assert_triangle_not_reachable_from(t4,t0); euler V=8, E=12, F=8, chi=4.

Expected kernel behavior

Branch 3 fires; nesting_levels[inner]==0+1 is confirmed; detector marks faces of the inner component for potential flip to ensure compatible outward/inward winding convention at the nesting boundary.

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      6.0,
10      0.0,
11      0.0
12    ],
13    [
14      3.0,
15      5.196,
16      0.0
17    ],
18    [
19      3.0,
20      1.732,
21      4.899
22    ],
23    [
24      2.7,
25      1.732,
26      1.225
27    ],
28    [
29      3.3,
30      1.732,
31      1.225
32    ],
33    [
34      3.0,
35      2.252,
36      1.225
37    ],
38    [
39      3.0,
40      1.924,
41      1.714
42    ]
43  ],
44  "triangles": [
45    [
46      0,
47      2,
48      1
49    ],
50    [
51      0,
52      1,
53      3
54    ],
55    [
56      1,
57      2,
58      3
59    ],
60    [
61      0,
62      3,
63      2
64    ],
65    [
66      4,
67      6,
68      5
69    ],
70    [
71      4,
72      5,
73      7
74    ],
75    [
76      5,
77      6,
78      7
79    ],
80    [
81      4,
82      7,
83      6
84    ]
85  ],
86  "metadata": {
87    "id": "Me1022",
88    "schema_version": 0,
89    "defect_class": "nested_orientation_parent_child",
90    "title": "compatible_orientations nesting-constraint detector: nesting_levels[child]==parent+1 direct parent-child relationship",
91    "assertions": [
92      {
93        "kind": "edge_shared_by_n_triangles",
94        "edge": [
95          0,
96          1
97        ],
98        "n": 2
99      },
100      {
101        "kind": "edge_shared_by_n_triangles",
102        "edge": [
103          0,
104          2
105        ],
106        "n": 2
107      },
108      {
109        "kind": "edge_shared_by_n_triangles",
110        "edge": [
111          0,
112          3
113        ],
114        "n": 2
115      },
116      {
117        "kind": "edge_shared_by_n_triangles",
118        "edge": [
119          1,
120          2
121        ],
122        "n": 2
123      },
124      {
125        "kind": "edge_shared_by_n_triangles",
126        "edge": [
127          1,
128          3
129        ],
130        "n": 2
131      },
132      {
133        "kind": "edge_shared_by_n_triangles",
134        "edge": [
135          2,
136          3
137        ],
138        "n": 2
139      },
140      {
141        "kind": "edge_shared_by_n_triangles",
142        "edge": [
143          4,
144          5
145        ],
146        "n": 2
147      },
148      {
149        "kind": "edge_shared_by_n_triangles",
150        "edge": [
151          4,
152          6
153        ],
154        "n": 2
155      },
156      {
157        "kind": "edge_shared_by_n_triangles",
158        "edge": [
159          4,
160          7
161        ],
162        "n": 2
163      },
164      {
165        "kind": "edge_shared_by_n_triangles",
166        "edge": [
167          5,
168          6
169        ],
170        "n": 2
171      },
172      {
173        "kind": "edge_shared_by_n_triangles",
174        "edge": [
175          5,
176          7
177        ],
178        "n": 2
179      },
180      {
181        "kind": "edge_shared_by_n_triangles",
182        "edge": [
183          6,
184          7
185        ],
186        "n": 2
187      },
188      {
189        "kind": "triangle_not_reachable_from",
190        "target": 4,
191        "source": 0
192      },
193      {
194        "kind": "euler_characteristic",
195        "v": 8,
196        "e": 12,
197        "f": 8,
198        "chi": 4
199      }
200    ]
201  }
202}