mesh-examples/12-14-mesh/Me952.mesh.json
Sources
- MeshFix `Basic_TMesh.checkGeometry` Branch 3 (*duplicate_vertex_with_edge*: `getEdge(v2)!=null`)
- `MESH_HEAL_COVERAGE.md`.
Description
Degenerate triangle t1 where vertices v0=(1,0,0) and v1=(1,0,0) are exactly coincident AND connected by a half-edge. Edge (v0,v1) has length 0, and the triangle has area 0. When the sorted vertex array finds v0 and v1 adjacent with distance 0, getEdge(v1) from v0 returns non-null (because t1 references both). checkGeometry returns v0 immediately as the critical defect — early return, most severe path. Clean control triangle t0 placed first for predictable indexing.
Reproducer recipe
t0=(v3,v4,v5) clean control; t1=(v0,v1,v2) with v0=v1=(1,0,0); edge (v0,v1) exists in t1 with length 0; assert vertex_pair_distance_lt(v0,v1,1e-12), triangle_area_lt(t1,1e-12), edge_shared(v0,v1,1).
Expected kernel behavior
Branch 3 fires; defect logged as 'and there is an edge connecting them'; function returns v0 immediately as defect vertex (most severe path, 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 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": "Me952", 48 "schema_version": 0, 49 "defect_class": "coincident_vertices", 50 "title": "Basic_TMesh.checkGeometry duplicate_vertex_with_edge: v0==v1 at (1,0,0), 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}