Me015 — polygon with repeated vertex: triangle 1 lists vertex 1 twice

§12.14 mesh defects (sub-class: degeneracy/repeated-index)

topology

Sources

Description

triangle 1 has vertex index list `(1, 1, 2)` — vertex 1 appears twice. The face collapses to a line segment with zero area and undefined normal. Every traversal that assumes `i0 ≠ i1 ≠ i2` will produce undefined normals or divide-by-zero in barycentric coordinate computations. CGAL `repair_polygon_soup` detects and removes polygons with repeated indices.

Reproducer recipe

3 vertices; face 0 = `(0,1,2)` (clean control); face 1 = `(1,1,2)` — vertex 1 appears at both positions 0 and 1.

Expected kernel behavior

scan face index lists for repeated entries and remove or split the degenerate face before any normal or barycentric computation.

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  "triangles": [
20    [
21      0,
22      1,
23      2
24    ],
25    [
26      1,
27      1,
28      2
29    ]
30  ],
31  "metadata": {
32    "id": "Me015",
33    "schema_version": 0,
34    "defect_class": "polygon_with_repeated_vertex",
35    "title": "polygon with repeated vertex: triangle 1 is (v1, v1, v2) \u2014 degenerate",
36    "assertions": [
37      {
38        "kind": "triangle_area_lt",
39        "triangle": 1,
40        "lt": 1e-12
41      }
42    ]
43  }
44}