Me392 — do_faces_intersect_shared_edge_coplanarity_orientation: coplanar same-orientation faces sharing edge — overlapping SI (Branch 3)

§12.14 mesh defects (sub-class: do_faces_intersect / shared-edge-coplanarity-orientation)

topology

Sources

Description

Two coplanar triangles sharing edge (v0,v1), both with normals pointing +Z (same orientation: CGAL::POSITIVE). The smaller triangle's apex v3=(1.5,1,0) lies inside the larger triangle's interior. Branch 3 fires after detecting shared-edge coplanarity and same normal orientation — classifying this as an overlapping self-intersection. The shared edge (v0,v1) is incident on both triangles (n=2).

Reproducer recipe

v0=(0,0,0), v1=(3,0,0), v2=(1.5,3,0), v3=(1.5,1,0); t0=(v0,v1,v2), t1=(v0,v1,v3); assert_edge_shared(v0,v1,2); assert_triangles_self_intersect(0,1).

Expected kernel behavior

Branch 3 fires; coplanar+same-orientation+overlapping → classified as SI.

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      3.0,
10      0.0,
11      0.0
12    ],
13    [
14      1.5,
15      3.0,
16      0.0
17    ],
18    [
19      1.5,
20      1.0,
21      0.0
22    ]
23  ],
24  "triangles": [
25    [
26      0,
27      1,
28      2
29    ],
30    [
31      0,
32      1,
33      3
34    ]
35  ],
36  "metadata": {
37    "id": "Me392",
38    "schema_version": 0,
39    "defect_class": "self_intersection_face_pair",
40    "title": "do_faces_intersect shared-edge coplanar same-orientation: overlapping coplanar faces \u2192 overlapping SI (Branch 3)",
41    "assertions": [
42      {
43        "kind": "edge_shared_by_n_triangles",
44        "edge": [
45          0,
46          1
47        ],
48        "n": 2
49      },
50      {
51        "kind": "triangles_self_intersect",
52        "triangles": [
53          0,
54          1
55        ]
56      }
57    ]
58  }
59}