Me394 — do_faces_intersect_opposite_segment_triangle_containment: shared-vertex pair where opposite segment pierces other triangle (Branch 5)

§12.14 mesh defects (sub-class: do_faces_intersect / opposite-segment-vs-triangle-containment)

topology

Sources

Description

Two triangles sharing vertex v0=(0,0,0). t0 lies in the XY plane: (v0, v1=(2,0,0), v2=(0,2,0)). t1 is near-vertical: (v0, v3=(1,1,-1), v4=(1,1,1)). The edge opposite to v0 in t1 — the segment (v3,v4) — passes through t0's interior at (1,1,0). Branch 5 detects this: `do_intersect(t0, segment(v3,v4))` returns true → SI confirmed.

Reproducer recipe

v0=(0,0,0), v1=(2,0,0), v2=(0,2,0), v3=(1,1,-1), v4=(1,1,1); t0=(v0,v1,v2), t1=(v0,v3,v4); assert_triangles_self_intersect(0,1).

Expected kernel behavior

Branch 5 fires; segment (v3,v4) intersects t0's interior → returns true (SI detected).

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      0.0,
15      2.0,
16      0.0
17    ],
18    [
19      1.0,
20      1.0,
21      -1.0
22    ],
23    [
24      1.0,
25      1.0,
26      1.0
27    ]
28  ],
29  "triangles": [
30    [
31      0,
32      1,
33      2
34    ],
35    [
36      0,
37      3,
38      4
39    ]
40  ],
41  "metadata": {
42    "id": "Me394",
43    "schema_version": 0,
44    "defect_class": "self_intersection_face_pair",
45    "title": "do_faces_intersect shared-vertex opposite-segment-pierces: segment opposite shared vertex crosses other triangle's interior (Branch 5)",
46    "assertions": [
47      {
48        "kind": "triangles_self_intersect",
49        "triangles": [
50          0,
51          1
52        ]
53      }
54    ]
55  }
56}