mesh-examples/12-14-mesh/Me951.mesh.json
Sources
- MeshFix `Basic_TMesh.checkGeometry` Branch 2 (*duplicate_vertices*: `xyzCompare` detects coincident pair, `getEdge(v2)==null`)
- `MESH_HEAL_COVERAGE.md`.
Description
Two vertices v0 and v3 both at (0,0,0) in separate triangles with no shared edge or half-edge. In the sorted vertex array, these entries are adjacent with distance 0. Since getEdge(v3) from v0 returns null (no triangle contains both), a warning is logged and the scan continues — Branch 2 fires without early return. The function records the defect and moves on.
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; assert vertex_pair_distance_lt(v0,v3,1e-12) and vertex_pair_no_shared_triangle(v0,v3).
Expected kernel behavior
Branch 2 fires; defect logged as 'detected coincident vertices'; getEdge returns null; scan continues without early return.
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 2.0, 25 0.0, 26 0.0 27 ], 28 [ 29 1.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": "Me951", 48 "schema_version": 0, 49 "defect_class": "coincident_vertices", 50 "title": "Basic_TMesh.checkGeometry duplicate_vertices: v0==v3 at (0,0,0) in separate triangles, no 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}