Me1140 — volume_connected_components self_intersection_detection: eight-triangle closed shell where cap faces (z=1 plane vs y=1 plane) cross with no shared vertex; does_self_intersect fires (Branch 1)

§12.14 mesh defects (sub-class: self_intersection / volume-component-SI)

topology

Sources

Description

An 8-triangle closed manifold (V=6, E=12, F=8, χ=2) formed by two "crossing cap" triangles connected by a 6-triangle band. The P-cap (t0) lies in z=1 plane and the Q-cap (t1) lies in y=1 plane; they share no vertices. Their planes intersect along the line {(x,1,1)}: the segment from (1,1,1) to (2,1,1) lies inside t0 and on the boundary of t1, making the triangles geometrically self-intersecting. The 6 band triangles pair each P-edge to the corresponding Q-edge, ensuring all 12 edges are shared by exactly 2 faces (closed manifold). does_self_intersect detects the crossing cap pair → Branch 1 fires before volume analysis.

Reproducer recipe

p0=(0,0,1), p1=(4,0,1), p2=(2,4,1) (z=1 plane); q0=(2,1,0), q1=(2,1,4), q2=(0,1,2) (y=1 plane); t0=(p0,p1,p2), t1=(q0,q2,q1); band: t2=(p0,p1,q0), t3=(p1,q1,q0), t4=(p1,p2,q1), t5=(p2,q2,q1), t6=(p2,p0,q2), t7=(p0,q0,q2); all 12 edges shared by 2; assert_triangles_self_intersect(t0,t1); euler V=6,E=12,F=8,chi=2.

Expected kernel behavior

Branch 1 fires; does_self_intersect returns true for the component; it is appended to output.self_intersecting and skipped in volume/nesting analysis.

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      1.0
7    ],
8    [
9      4.0,
10      0.0,
11      1.0
12    ],
13    [
14      2.0,
15      4.0,
16      1.0
17    ],
18    [
19      2.0,
20      1.0,
21      0.0
22    ],
23    [
24      2.0,
25      1.0,
26      4.0
27    ],
28    [
29      0.0,
30      1.0,
31      2.0
32    ]
33  ],
34  "triangles": [
35    [
36      0,
37      1,
38      2
39    ],
40    [
41      3,
42      5,
43      4
44    ],
45    [
46      0,
47      1,
48      3
49    ],
50    [
51      1,
52      4,
53      3
54    ],
55    [
56      1,
57      2,
58      4
59    ],
60    [
61      2,
62      5,
63      4
64    ],
65    [
66      2,
67      0,
68      5
69    ],
70    [
71      0,
72      3,
73      5
74    ]
75  ],
76  "metadata": {
77    "id": "Me1140",
78    "schema_version": 0,
79    "defect_class": "self_intersection_volume_component",
80    "title": "volume_connected_components self_intersection_detection: eight-triangle closed shell where cap faces (z=1 plane vs y=1 plane) cross with no shared vertex; does_self_intersect fires (Branch 1)",
81    "assertions": [
82      {
83        "kind": "edge_shared_by_n_triangles",
84        "edge": [
85          0,
86          1
87        ],
88        "n": 2
89      },
90      {
91        "kind": "edge_shared_by_n_triangles",
92        "edge": [
93          1,
94          2
95        ],
96        "n": 2
97      },
98      {
99        "kind": "edge_shared_by_n_triangles",
100        "edge": [
101          0,
102          2
103        ],
104        "n": 2
105      },
106      {
107        "kind": "edge_shared_by_n_triangles",
108        "edge": [
109          3,
110          4
111        ],
112        "n": 2
113      },
114      {
115        "kind": "edge_shared_by_n_triangles",
116        "edge": [
117          4,
118          5
119        ],
120        "n": 2
121      },
122      {
123        "kind": "edge_shared_by_n_triangles",
124        "edge": [
125          3,
126          5
127        ],
128        "n": 2
129      },
130      {
131        "kind": "edge_shared_by_n_triangles",
132        "edge": [
133          1,
134          3
135        ],
136        "n": 2
137      },
138      {
139        "kind": "edge_shared_by_n_triangles",
140        "edge": [
141          1,
142          4
143        ],
144        "n": 2
145      },
146      {
147        "kind": "edge_shared_by_n_triangles",
148        "edge": [
149          2,
150          4
151        ],
152        "n": 2
153      },
154      {
155        "kind": "edge_shared_by_n_triangles",
156        "edge": [
157          2,
158          5
159        ],
160        "n": 2
161      },
162      {
163        "kind": "edge_shared_by_n_triangles",
164        "edge": [
165          0,
166          5
167        ],
168        "n": 2
169      },
170      {
171        "kind": "edge_shared_by_n_triangles",
172        "edge": [
173          0,
174          3
175        ],
176        "n": 2
177      },
178      {
179        "kind": "triangles_self_intersect",
180        "triangles": [
181          0,
182          1
183        ]
184      },
185      {
186        "kind": "euler_characteristic",
187        "v": 6,
188        "e": 12,
189        "f": 8,
190        "chi": 2
191      }
192    ]
193  }
194}