mesh-examples/12-14-mesh/Me284.mesh.json
Sources
- MeshFix `checkAndRepair::checkGeometry` Branch 5 (*COINCIDENT_EDGES*: adjacent sorted entries share same vertex-coordinate pair)
- `MESH_HEAL_COVERAGE.md`.
Description
Triangle t0=(v0,v1,v2) and triangle t1=(v3,v4,v5) share the same geometric edge position: v0=(0,0,0)≡v3 and v1=(1,0,0)≡v4 by coordinate, but are distinct vertex indices. After lex-sorting all edges by coordinate, entries for (v0,v1) and (v3,v4) are adjacent with distance 0. checkGeometry marks edge v1 (index 4) as defective — two distinct half-edge objects map to the same geometric line segment.
Reproducer recipe
t0=(v0,v1,v2) upper triangle; t1=(v3,v4,v5) lower triangle with v3≡v0, v4≡v1 by coordinate but different indices; assert edge_pair_coincident and vertex pair distances.
Expected kernel behavior
Branch 5 fires; defect logged as 'detected coincident edges'; mesh marks edge v1 as defective geometry.
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.0, 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.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": "Me284", 48 "schema_version": 0, 49 "defect_class": "coincident_edges", 50 "title": "checkGeometry_coincident_edges: two spatially identical edges with different vertex indices (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}