mesh-examples/12-14-mesh/Me082.mesh.json
Sources
- MeshFix `checkAndRepair::checkConnectivity` Branch 4 (*NULL_EDGE_ENDPOINT*)
- `MESH_HEAL_COVERAGE.md`.
Description
triangle t1 = (v0, v0, v2) uses vertex 0 for two of its three corners. This creates a self-loop edge (v0→v0) with zero length, which in MeshFix's half-edge structure appears as an edge with a NULL or coincident endpoint. The degenerate triangle has zero area.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(0.5,1,0); t0=(v0,v1,v2) valid; t1=(v0,v0,v2) degenerate.
Expected kernel behavior
detect and remove the zero-area degenerate triangle; the self-loop edge has no valid half-edge pairing.
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": "Me082", 33 "schema_version": 0, 34 "defect_class": "degenerate_triangle", 35 "title": "connectivity null edge endpoint: degenerate triangle [v0,v0,v2] has zero-length self-loop edge", 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 } 52}