mesh-examples/12-14-mesh/Me770.mesh.json
Sources
- CGAL PMP `PMP.is_needle_triangle_face` Branch 1 (*aspect_ratio_extreme*: `if(res == -1) return halfedge_descriptor()
- `)
- `MESH_HEAL_COVERAGE.md`.
Description
Single near-equilateral triangle: v0=(0,0,0), v1=(1,0,0), v2=(0.5,0.866,0). All three edge lengths ≈ 1.0; aspect ratio ≈ 1.15, well under the CGAL default needle threshold (~4.0). The function computes the shortest edge (res==-1 when no edge is pathologically short relative to altitudes), and returns a null halfedge indicating the face is NOT a needle. Branch 1 fires. All three edges are boundary edges (open single triangle). Euler: V=3, E=3, F=1, chi=1.
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(0.5,0.866,0); t0=(v0,v1,v2); assert all edges shared n=1; assert euler V=3,E=3,F=1,chi=1.
Expected kernel behavior
Branch 1 fires (res==-1); is_needle_triangle_face returns null_halfedge — face is well-formed, not a needle.
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 0.866, 16 0.0 17 ] 18 ], 19 "triangles": [ 20 [ 21 0, 22 1, 23 2 24 ] 25 ], 26 "metadata": { 27 "id": "Me770", 28 "schema_version": 0, 29 "defect_class": "degenerate_triangle", 30 "title": "is_needle_triangle_face aspect_ratio_below_threshold: near-equilateral triangle; aspect ratio < needle threshold; res==-1 returns null_halfedge (Branch 1)", 31 "assertions": [ 32 { 33 "kind": "edge_shared_by_n_triangles", 34 "edge": [ 35 0, 36 1 37 ], 38 "n": 1 39 }, 40 { 41 "kind": "edge_shared_by_n_triangles", 42 "edge": [ 43 1, 44 2 45 ], 46 "n": 1 47 }, 48 { 49 "kind": "edge_shared_by_n_triangles", 50 "edge": [ 51 0, 52 2 53 ], 54 "n": 1 55 }, 56 { 57 "kind": "euler_characteristic", 58 "v": 3, 59 "e": 3, 60 "f": 1, 61 "chi": 1 62 } 63 ] 64 } 65}