Me954 — Basic_TMesh.checkGeometry duplicate_edges: edge (v0,v1) spatially coincident with (v3,v4) (Branch 5)

§12.14 mesh defects (sub-class: Basic_TMesh.checkGeometry / coincident-edges)

topology

Sources

Description

Two isolated triangles t0=(v0,v1,v2) and t1=(v3,v4,v5) where v0≡v3=(0,0,0) and v1≡v4=(1,0,0) by coordinate but different vertex indices. After sorting all edges by endpoint coordinates, entries for (v0,v1) and (v3,v4) are adjacent with difference 0. checkGeometry logs 'detected coincident edges', marks the edge as defective, and continues (no early return). This is the successful-detection Branch 5 in the 7-branch Basic_TMesh.checkGeometry variant.

Reproducer recipe

t0=(v0,v1,v2) with v0=(0,0,0), v1=(1,0,0), v2=(0.5,1,0); t1=(v3,v4,v5) with v3=(0,0,0), v4=(1,0,0), v5=(0.5,-1,0); assert vertex pair distances < 1e-12 and edge_pair_coincident.

Expected kernel behavior

Branch 5 fires; defect logged as 'detected coincident edges'; ret updated; 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      0.0
27    ],
28    [
29      0.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": "Me954",
48    "schema_version": 0,
49    "defect_class": "coincident_edges",
50    "title": "Basic_TMesh.checkGeometry duplicate_edges: edge (v0,v1) at (0,0,0)-(1,0,0) spatially coincident with (v3,v4) (Branch 5)",
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_distance_lt",
62        "pair": [
63          1,
64          4
65        ],
66        "lt": 1e-12
67      },
68      {
69        "kind": "edge_pair_coincident",
70        "edge_a": [
71          0,
72          1
73        ],
74        "edge_b": [
75          3,
76          4
77        ],
78        "eps": 1e-07
79      }
80    ]
81  }
82}