mesh-examples/12-14-mesh/Me773.mesh.json
Sources
- CGAL PMP `PMP.is_needle_triangle_face` Branch 4 (*aspect_ratio_extreme*: `else return prev(h,tm)
- ` // res==2)
- `MESH_HEAL_COVERAGE.md`.
Description
Single needle triangle: v0=(0,0,0), v1=(50,1,0), v2=(0.01,0,0). Edge e2=prev(h) (v2→v0) has length 0.01 — the shortest. Edges e0 (v0→v1) and e1 (v1→v2) each have length ≈ 50.01 and ≈ 50.0 respectively. Aspect ratio ≈ 250050, far above threshold. is_needle_triangle_face returns prev(h,tm) (the halfedge corresponding to e2, the shortest edge). Branch 4 fires: res==2 (implicit else). All edges are boundary edges; Euler: V=3, E=3, F=1, chi=1.
Reproducer recipe
v0=(0,0,0), v1=(50,1,0), v2=(0.01,0,0); t0=(v0,v1,v2); e2=prev(h) length=0.01 < e0≈e1≈50; assert aspect_ratio_gt(t0,1000); assert euler V=3,E=3,F=1,chi=1.
Expected kernel behavior
Branch 4 fires (res==2, implicit else); is_needle_triangle_face returns prev(h,tm) — the halfedge for the shortest edge e2 (v2→v0).
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 50.0, 10 1.0, 11 0.0 12 ], 13 [ 14 0.01, 15 0.0, 16 0.0 17 ] 18 ], 19 "triangles": [ 20 [ 21 0, 22 1, 23 2 24 ] 25 ], 26 "metadata": { 27 "id": "Me773", 28 "schema_version": 0, 29 "defect_class": "degenerate_triangle", 30 "title": "is_needle_triangle_face shortest_edge_e2: needle triangle v2-v0 base 0.01; e2 shortest; res==2 returns prev(h,tm) (Branch 4)", 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": "triangle_aspect_ratio_gt", 58 "triangle": 0, 59 "gt": 1000.0 60 }, 61 { 62 "kind": "euler_characteristic", 63 "v": 3, 64 "e": 3, 65 "f": 1, 66 "chi": 1 67 } 68 ] 69 } 70}