mesh-examples/12-14-mesh/Me953.mesh.json
Sources
- MeshFix `Basic_TMesh.checkGeometry` Branch 4 (*edge_alloc_failure*: `evarr==NULL`
- edge sort buffer alloc fails, skip coincident-edge scan)
- `MESH_HEAL_COVERAGE.md`.
Description
Two isolated triangles where edge (v0,v1) and edge (v3,v4) are spatially coincident (v0≡v3 and v1≡v4 by coordinate) but distinct vertex indices. Branch 4 fires when the sort buffer for edge coordinates cannot be allocated — coincident-edge scan is skipped. The same geometry would trigger Branch 5 (duplicate_edges) if allocation succeeds. This is the alloc-guard placeholder for the 7-branch Basic_TMesh.checkGeometry variant.
Reproducer recipe
t0=(v0,v1,v2) with v0=(0,0,0), v1=(1,0,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 4 fires on alloc failure; coincident edge pair would be flagged as duplicate_edges (Branch 5) if alloc succeeds.
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": "Me953", 48 "schema_version": 0, 49 "defect_class": "coincident_edges", 50 "title": "Basic_TMesh.checkGeometry edge_alloc_failure: coincident edge pair v0/v3 and v1/v4; evarr==NULL alloc guard (Branch 4)", 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}