mesh-examples/12-14-mesh/Me652.mesh.json
Sources
- MeshFix `Basic_TMesh.removeEdges` Branch 3 (*null_vertex_v2*: `|| e->v2 == NULL`)
- `MESH_HEAL_COVERAGE.md`.
Description
A degenerate triangle t0=(v0,v1,v2) where v1 and v2 are coincident at (3,0,0) is the geometric proxy for an edge whose v2 pointer has been nulled. The collapsed edge (v1,v2) has zero length; t0 has zero area. A second well-formed triangle t1=(v0,v1,v3) provides context. The null-v2 branch of the OR fires when the traversal reaches this edge; v0 is well-formed but v2 is effectively absent. Interior edge (v0,v1) is n=2; all others n=1.
Reproducer recipe
v0=(0,0,0), v1=(3,0,0), v2=(3,0,0) [=v1], v3=(1,2,0); t0=(v0,v1,v2), t1=(v0,v1,v3); vertex_pair_distance_lt(v1,v2,1e-9); triangle_area_lt(t0,1e-9); edge_shared(v0,v1,2); outer edges n=1.
Expected kernel behavior
Branch 3 fires when traversal reaches (v1,v2); v1 is valid but v2 is null (coincident proxy); edge is flagged for E.removeCell.
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 3.0, 10 0.0, 11 0.0 12 ], 13 [ 14 3.0, 15 0.0, 16 0.0 17 ], 18 [ 19 1.0, 20 2.0, 21 0.0 22 ] 23 ], 24 "triangles": [ 25 [ 26 0, 27 1, 28 2 29 ], 30 [ 31 0, 32 1, 33 3 34 ] 35 ], 36 "metadata": { 37 "id": "Me652", 38 "schema_version": 0, 39 "defect_class": "orphaned_edge", 40 "title": "removeEdges null_vertex_v2: degenerate edge with v2 coincident to v1 at (3,0,0); proxy for e->v2==NULL (Branch 3)", 41 "assertions": [ 42 { 43 "kind": "vertex_pair_distance_lt", 44 "pair": [ 45 1, 46 2 47 ], 48 "lt": 1e-09 49 }, 50 { 51 "kind": "triangle_area_lt", 52 "triangle": 0, 53 "lt": 1e-09 54 }, 55 { 56 "kind": "edge_shared_by_n_triangles", 57 "edge": [ 58 0, 59 1 60 ], 61 "n": 2 62 }, 63 { 64 "kind": "edge_shared_by_n_triangles", 65 "edge": [ 66 1, 67 2 68 ], 69 "n": 1 70 }, 71 { 72 "kind": "edge_shared_by_n_triangles", 73 "edge": [ 74 0, 75 2 76 ], 77 "n": 1 78 }, 79 { 80 "kind": "edge_shared_by_n_triangles", 81 "edge": [ 82 1, 83 3 84 ], 85 "n": 1 86 }, 87 { 88 "kind": "edge_shared_by_n_triangles", 89 "edge": [ 90 0, 91 3 92 ], 93 "n": 1 94 } 95 ] 96 } 97}