Me281 — checkGeometry_coincident_vertices_edge_absent: two coincident vertices without connecting edge (Branch 2)

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

topology

Sources

Description

Two vertices v0 and v3 both at (0,0,0) belong to separate triangles with no edge connecting them. In the half-edge structure, getEdge(v3) returns null when queried from v0 because no triangle contains both. checkGeometry detects this by sorting vertices by coordinate: consecutive entries have distance 0 but no half-edge link. It marks v0 as defective and continues.

Reproducer recipe

t0=(v0,v1,v2) with v0=(0,0,0); t1=(v3,v4,v5) with v3=(0,0,0); no triangle references both v0 and v3.

Expected kernel behavior

Branch 2 fires; defect flagged as 'detected coincident vertices, getEdge(v2) == null'; mesh marked as defective; scan continues.

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.0,
20      0.0,
21      0.0
22    ],
23    [
24      1.0,
25      0.0,
26      2.0
27    ],
28    [
29      0.5,
30      1.0,
31      2.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": "Me281",
48    "schema_version": 0,
49    "defect_class": "coincident_vertices",
50    "title": "checkGeometry_coincident_vertices_edge_absent: two coincident vertices without connecting edge (Branch 2)",
51    "assertions": [
52      {
53        "kind": "vertex_pair_distance_lt",
54        "pair": [
55          0,
56          3
57        ],
58        "lt": 1e-12
59      },
60      {
61        "kind": "vertex_pair_no_shared_triangle",
62        "pair": [
63          0,
64          3
65        ]
66      }
67    ]
68  }
69}