Me050 — degenerate collinear face: SI-impl reports (f,f) self-pair instead of building AABB bbox

§12.14 mesh defects (sub-class: self-intersection/degenerate-face)

spec-violation

Sources

Description

triangle 0 is collinear (all three vertices on the X-axis, zero area). CGAL self_intersections_impl tests each face for degeneracy before inserting it into the AABB tree: a collinear face is reported as a (f, f) self-pair rather than entering the spatial index. Triangle 1 is a valid reference triangle.

Reproducer recipe

v0=(0,0,0), v1=(1,0,0), v2=(2,0,0) collinear; tri0=(v0,v1,v2) degenerate. Triangle 1 is a spatially separate valid triangle.

Expected kernel behavior

detect (tri0, tri0) as a degenerate self-pair; skip AABB bbox creation for tri0.

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      1.0,
10      0.0,
11      0.0
12    ],
13    [
14      2.0,
15      0.0,
16      0.0
17    ],
18    [
19      5.0,
20      0.0,
21      0.0
22    ],
23    [
24      6.0,
25      1.0,
26      0.0
27    ],
28    [
29      6.0,
30      -1.0,
31      0.0
32    ]
33  ],
34  "triangles": [
35    [
36      0,
37      1,
38      2
39    ],
40    [
41      3,
42      4,
43      5
44    ]
45  ],
46  "metadata": {
47    "id": "Me050",
48    "schema_version": 0,
49    "defect_class": "self_intersection_degenerate_face",
50    "title": "Degenerate collinear face: SI-impl detects (f,f) self-pair",
51    "assertions": [
52      {
53        "kind": "triangle_area_lt",
54        "triangle": 0,
55        "lt": 1e-09
56      }
57    ]
58  }
59}