Me933 — PMP.orient orientation-assignment-by-nesting: inner tetra ON_BOUNDED_SIDE; inward orientation assigned (Branch 4)

§12.14 mesh defects (sub-class: inverted_normals / orient-nesting)

topology

Sources

Description

Two nested closed tetrahedral shells. The outer shell (Component A) is a large tetrahedron; the inner shell (Component B) is a small tetrahedron geometrically contained inside A. When side_of_cc probes Component B's extremal vertex against Component A's volume it returns ON_BOUNDED_SIDE — Branch 4 fires and orient_to_bound_a_volume assigns inward orientation to Component B.

Reproducer recipe

Component A: large tetra a0=(0,0,0), a1=(6,0,0), a2=(3,6,0), a3=(3,3,6); Component B: small tetra b0=(2,1,1), b1=(4,1,1), b2=(3,3,1), b3=(3,2,2.5) all inside A; B unreachable from A; assert triangles_do_not_intersect([0,4]); euler V=8, E=12, F=8, chi=4.

Expected kernel behavior

Branch 4 fires; side_of_cc(b3) == ON_BOUNDED_SIDE (b3 inside A); orient_to_bound_a_volume called for Component B; inward orientation assigned.

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      6.0,
16      0.0
17    ],
18    [
19      3.0,
20      3.0,
21      6.0
22    ],
23    [
24      2.0,
25      1.0,
26      1.0
27    ],
28    [
29      4.0,
30      1.0,
31      1.0
32    ],
33    [
34      3.0,
35      3.0,
36      1.0
37    ],
38    [
39      3.0,
40      2.0,
41      2.5
42    ]
43  ],
44  "triangles": [
45    [
46      0,
47      1,
48      2
49    ],
50    [
51      0,
52      3,
53      1
54    ],
55    [
56      1,
57      3,
58      2
59    ],
60    [
61      0,
62      2,
63      3
64    ],
65    [
66      4,
67      5,
68      6
69    ],
70    [
71      4,
72      7,
73      5
74    ],
75    [
76      5,
77      7,
78      6
79    ],
80    [
81      4,
82      6,
83      7
84    ]
85  ],
86  "metadata": {
87    "id": "Me933",
88    "schema_version": 0,
89    "defect_class": "inverted_normals",
90    "title": "PMP.orient orientation-assignment-by-nesting: small inner tetrahedron ON_BOUNDED_SIDE of large outer tetrahedron; inward orientation assigned (Branch 4)",
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          1,
112          2
113        ],
114        "n": 2
115      },
116      {
117        "kind": "edge_shared_by_n_triangles",
118        "edge": [
119          0,
120          3
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          5,
160          6
161        ],
162        "n": 2
163      },
164      {
165        "kind": "edge_shared_by_n_triangles",
166        "edge": [
167          4,
168          7
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": "triangles_do_not_intersect",
195        "triangles": [
196          0,
197          4
198        ]
199      },
200      {
201        "kind": "euler_characteristic",
202        "v": 8,
203        "e": 12,
204        "f": 8,
205        "chi": 4
206      }
207    ]
208  }
209}