Me1113 — two SI types: interior crossing + corner-touch pair filterable by filter NP

§12.14 mesh defects (sub-class: self-intersection/multi-type)

topology

Sources

Description

the mesh has two self-intersection situations. Pair 1 (triangles 0,1): a full interior crossing — t0 in Z=0 and t1 tilted through it; cannot be filtered out. Pair 2 (triangles 2,3): two triangles that share only a single corner vertex (q_shared at (5,0,0)) and are otherwise disconnected — this "corner-touch" pattern is the candidate a filter predicate could exclude from the repair queue. When filter is non-null, Branch 4 is traversed to decide which pairs to skip.

Reproducer recipe

Pair 1: p0=(0,0,0), p1=(2,0,0), p2=(1,2,0), p3=(1,-1,1), p4=(1,1,-1); t0=(p0,p1,p2), t1=(p0,p3,p4). Pair 2: q_shared=(5,0,0) plus 4 flanking vertices forming t2 (right) and t3 (left) sharing only q_shared. assert_triangles_self_intersect(0,1); assert_triangle_not_reachable_from(2,0).

Expected kernel behavior

when filter is null, process all SI pairs including corner-touch; when filter excludes interior-disjoint pairs, skip Pair 2 and only repair Pair 1.

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      1.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      5.0,
30      0.0,
31      0.0
32    ],
33    [
34      6.0,
35      1.0,
36      0.0
37    ],
38    [
39      6.0,
40      -1.0,
41      0.0
42    ],
43    [
44      4.0,
45      1.0,
46      0.0
47    ],
48    [
49      4.0,
50      -1.0,
51      0.0
52    ]
53  ],
54  "triangles": [
55    [
56      0,
57      1,
58      2
59    ],
60    [
61      0,
62      3,
63      4
64    ],
65    [
66      5,
67      6,
68      7
69    ],
70    [
71      5,
72      8,
73      9
74    ]
75  ],
76  "metadata": {
77    "id": "Me1113",
78    "schema_version": 0,
79    "defect_class": "self_intersection_multi_type",
80    "title": "two SI pairs: interior crossing (must process) + corner-touch (filterable by filter NP)",
81    "assertions": [
82      {
83        "kind": "triangles_self_intersect",
84        "triangles": [
85          0,
86          1
87        ]
88      },
89      {
90        "kind": "triangle_not_reachable_from",
91        "target": 2,
92        "source": 0
93      }
94    ]
95  }
96}