Me1021 — compatible_orientations nesting-constraint detector: nested_cc_per_cc_shared non-empty (two nested closed tetrahedra)

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

topology

Sources

Description

Two closed tetrahedral components — a large outer tetrahedron (edge length 4) and a small inner tetrahedron (edge length 0.5) geometrically contained inside the outer one. The inner component's vertices are all within the outer tetrahedron's volume. The CGAL point-in-polyhedron test establishes a nesting relationship and populates `nested_cc_per_cc_shared`, causing Branch 2 (*nested-component-existence*) to be entered rather than skipped. Both components are closed manifold surfaces (each χ=2); combined χ=4. The two components are topologically disconnected.

Reproducer recipe

Outer: v0=(0,0,0), v1=(4,0,0), v2=(2,3.464,0), v3=(2,1.155,3.266), four outward faces. Inner: i0=(1.75,1.2,0.9), i1=(2.25,1.2,0.9), i2=(2.0,1.633,0.9), i3=(2.0,1.344,1.309), four outward faces. assert_triangle_not_reachable_from(t4,t0); euler V=8, E=12, F=8, chi=4.

Expected kernel behavior

Branch 2 fires; nested_cc_per_cc_shared is non-empty (inner component detected as nested inside outer); detector proceeds to nesting-level computation and orientation check.

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      4.0,
10      0.0,
11      0.0
12    ],
13    [
14      2.0,
15      3.464,
16      0.0
17    ],
18    [
19      2.0,
20      1.155,
21      3.266
22    ],
23    [
24      1.75,
25      1.2,
26      0.9
27    ],
28    [
29      2.25,
30      1.2,
31      0.9
32    ],
33    [
34      2.0,
35      1.633,
36      0.9
37    ],
38    [
39      2.0,
40      1.344,
41      1.309
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": "Me1021",
88    "schema_version": 0,
89    "defect_class": "nested_closed_components",
90    "title": "compatible_orientations nesting-constraint detector: nested_cc_per_cc_shared non-empty (two nested closed tetrahedra)",
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}