Me029 — degenerate edge in face: triangle with a zero-length edge

§12.14 mesh defects (sub-class: degeneracy/zero-length-edge)

topology

Sources

Description

triangle 1 contains a zero-length edge — vertices 3 and 4 share the exact same coordinates `(0.5, 1.0, 0.0)`. The edge `(v3,v4)` has length 0. CGAL `is_degenerate_edge` fires and `remove_degenerate_edges` is invoked before face removal. The triangle collapses to a line segment from the merged point to v5.

Reproducer recipe

triangle 0 = clean control; triangle 1 = `(v3,v4,v5)` where v3=(0.5,1,0) and v4=(0.5,1,0) (identical coordinates, distinct indices) and v5=(2,0,0).

Expected kernel behavior

detect zero-length edge `(v3,v4)` via `is_degenerate_edge`; invoke `remove_degenerate_edges` before attempting face-level Euler operators.

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      0.5,
20      1.0,
21      0.0
22    ],
23    [
24      0.5,
25      1.0,
26      0.0
27    ],
28    [
29      2.0,
30      0.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": "Me029",
48    "schema_version": 0,
49    "defect_class": "degenerate_triangle",
50    "title": "degenerate edge in face: triangle with a zero-length edge (v3==v4 coordinates)",
51    "assertions": [
52      {
53        "kind": "triangle_area_lt",
54        "triangle": 1,
55        "lt": 1e-12
56      },
57      {
58        "kind": "vertex_pair_distance_lt",
59        "pair": [
60          3,
61          4
62        ],
63        "lt": 1e-12
64      }
65    ]
66  }
67}