mesh-examples/12-14-mesh/Me500.mesh.json
Sources
- CGAL PMP `PMP.remove_almost_degenerate_faces.face_range` Branch 1 (*Needle triangle*: `if(is_needle_triangle_face(...))` @ line 1022)
- `MESH_HEAL_COVERAGE.md`.
Description
A needle triangle with short edge v0-v1=0.001 and long edges v0-v2≈v1-v2≈1.0. Edge-length ratio 1000:1 exceeds the default needle threshold (~0.04), triggering is_needle_triangle_face. The algorithm would collapse the shortest edge. Two healthy support triangles below provide topological context. Aspect ratio ≈ 1155.
Reproducer recipe
v0=(0,0,0), v1=(0.001,0,0), v2=(0.5,0.866,0), v3=(0,-0.5,0), v4=(0.001,-0.5,0); t0=(v0,v1,v2) needle; t1=(v0,v3,v1), t2=(v3,v4,v1) support; vertex_pair_distance_lt(v0,v1,0.002); triangle_area_lt(0,0.01); triangle_aspect_ratio_gt(0,100).
Expected kernel behavior
is_needle_triangle_face fires for t0; collapse of edge v0-v1 attempted.
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 0.001, 10 0.0, 11 0.0 12 ], 13 [ 14 0.5, 15 0.866, 16 0.0 17 ], 18 [ 19 0.0, 20 -0.5, 21 0.0 22 ], 23 [ 24 0.001, 25 -0.5, 26 0.0 27 ] 28 ], 29 "triangles": [ 30 [ 31 0, 32 1, 33 2 34 ], 35 [ 36 0, 37 3, 38 1 39 ], 40 [ 41 3, 42 4, 43 1 44 ] 45 ], 46 "metadata": { 47 "id": "Me500", 48 "schema_version": 0, 49 "defect_class": "needle_triangle", 50 "title": "remove_almost_degenerate_faces needle_triangle: edge v0-v1=0.001 vs long edges ~1.0; ratio 1000:1 triggers is_needle_triangle_face (Branch 1)", 51 "assertions": [ 52 { 53 "kind": "vertex_pair_distance_lt", 54 "pair": [ 55 0, 56 1 57 ], 58 "lt": 0.002 59 }, 60 { 61 "kind": "triangle_area_lt", 62 "triangle": 0, 63 "lt": 0.01 64 }, 65 { 66 "kind": "triangle_aspect_ratio_gt", 67 "triangle": 0, 68 "gt": 100.0 69 } 70 ] 71 } 72}