Me282 — checkGeometry_coincident_vertices_with_edge: coincident vertices connected by zero-length edge (Branch 3)

§12.14 mesh defects (sub-class: checkGeometry / coincident-vertices-edge-present)

topology

Sources

Description

Two vertices v0=(1,0,0) and v1=(1,0,0) are at the exact same position AND are connected by a half-edge (they appear together in triangle t1). The edge has zero length. This is a severe defect: the triangle degenerates to zero area, and operations computing edge length or normal will divide by zero. checkGeometry detects this and returns v0 immediately as the critical defect location.

Reproducer recipe

t0=(v3,v4,v5) clean control; t1=(v0,v1,v2) with v0=v1=(1,0,0); edge (v0,v1) exists with length 0; assert vertex_pair_distance_lt and edge_shared(v0,v1,1).

Expected kernel behavior

Branch 3 fires; defect logged as 'and there is an edge'; function returns v0 as defect vertex immediately (most severe path).

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      2.0,
10      0.0,
11      0.0
12    ],
13    [
14      1.0,
15      1.0,
16      0.0
17    ],
18    [
19      1.0,
20      0.0,
21      0.0
22    ],
23    [
24      1.0,
25      0.0,
26      0.0
27    ],
28    [
29      0.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": "Me282",
48    "schema_version": 0,
49    "defect_class": "coincident_vertices",
50    "title": "checkGeometry_coincident_vertices_with_edge: coincident vertices connected by zero-length edge (Branch 3)",
51    "assertions": [
52      {
53        "kind": "vertex_pair_distance_lt",
54        "pair": [
55          3,
56          4
57        ],
58        "lt": 1e-12
59      },
60      {
61        "kind": "triangle_area_lt",
62        "triangle": 1,
63        "lt": 1e-12
64      },
65      {
66        "kind": "edge_shared_by_n_triangles",
67        "edge": [
68          3,
69          4
70        ],
71        "n": 1
72      }
73    ]
74  }
75}