mesh-examples/12-14-mesh/Me481.mesh.json
Sources
- MeshFix `Basic_TMesh.removeTriangles` Branch 2 (*null_edge_e1*: `if (t->e1 == NULL || t->e2 == NULL || t->e3 == NULL)`)
- `MESH_HEAL_COVERAGE.md`.
Description
Triangle t1 = [v0, v0, v2] has a self-loop on the first edge (e1): corner-0 and corner-1 are both v0. The edge v0→v0 is zero-length; any edge-validity filter upstream would set e1=NULL, causing removeTriangles Branch 2 to mark t1 for removal. t0 = [v0, v1, v2] is a healthy companion.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(0.5,1,0); t0=(v0,v1,v2) healthy; t1=(v0,v0,v2) degenerate — e1=(v0,v0) self-loop; assert_triangle_area_lt(1,1e-12); edge_shared(v0,v0,1); vertex_pair_distance_lt(v0,v0,1e-12).
Expected kernel behavior
Branch 2 fires; t->e1 is NULL; triangle is queued for T.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 1.0, 10 0.0, 11 0.0 12 ], 13 [ 14 0.5, 15 1.0, 16 0.0 17 ] 18 ], 19 "triangles": [ 20 [ 21 0, 22 1, 23 2 24 ], 25 [ 26 0, 27 0, 28 2 29 ] 30 ], 31 "metadata": { 32 "id": "Me481", 33 "schema_version": 0, 34 "defect_class": "degenerate_triangle", 35 "title": "removeTriangles null_edge_e1: triangle [v0,v0,v2] has zero-length e1 edge (v0\u2192v0), e1-NULL precondition (Branch 2)", 36 "assertions": [ 37 { 38 "kind": "triangle_area_lt", 39 "triangle": 1, 40 "lt": 1e-12 41 }, 42 { 43 "kind": "edge_shared_by_n_triangles", 44 "edge": [ 45 0, 46 0 47 ], 48 "n": 1 49 }, 50 { 51 "kind": "vertex_pair_distance_lt", 52 "pair": [ 53 0, 54 0 55 ], 56 "lt": 1e-12 57 } 58 ] 59 } 60}