Me068 — pinch_detection: 4-vertex polygon (v0,v1,v2,v0) — minimum pinchable; yields one triangle

§12.14 mesh defects (sub-class: pinched-polygon/minimum-pinchable)

units

Sources

Description

a 4-vertex polygon (v0,v1,v2,v0) is the minimum-size polygon that can be pinched (Branch 2 skips ≤3 vertices). v0 is repeated at positions 0 and 3. split_polygon_1 = (v0,v1,v2,v0) → simplify → (v0,v1,v2) [triangle]. split_polygon_2 = (v0) [trivial, skipped by small_polygon_skip]. A clean companion triangle is also in the soup, exercising the iteration past the split result.

Reproducer recipe

6 vertices; polygon 0 = 4-vertex pinched (v0,v1,v2,v0); polygon 1 = clean triangle (v3,v4,v5).

Expected kernel behavior

detect v0 repetition at position 3; split to triangle + trivial 1-vertex polygon; discard trivial sub-polygon via Branch 2.

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      0.5,
15      1.0,
16      0.0
17    ],
18    [
19      3.0,
20      0.0,
21      0.0
22    ],
23    [
24      4.0,
25      0.0,
26      0.0
27    ],
28    [
29      3.5,
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": "Me068",
48    "schema_version": 0,
49    "defect_class": "pinched_polygon",
50    "title": "pinch_detection: 4-vertex polygon (v0,v1,v2,v0) \u2014 minimum pinchable; yields one triangle",
51    "assertions": [
52      {
53        "kind": "triangle_not_reachable_from",
54        "target": 1,
55        "source": 0
56      },
57      {
58        "kind": "edge_shared_by_n_triangles",
59        "edge": [
60          0,
61          1
62        ],
63        "n": 1
64      },
65      {
66        "kind": "edge_shared_by_n_triangles",
67        "edge": [
68          0,
69          2
70        ],
71        "n": 1
72      }
73    ]
74  }
75}