mesh-examples/12-14-mesh/Me501.mesh.json
Sources
- CGAL PMP `PMP.remove_almost_degenerate_faces.face_range` Branch 2 (*Needle non-collapsible*: `if(!CGAL::Euler::does_satisfy_link_condition(...))` @ line 1031)
- `MESH_HEAL_COVERAGE.md`.
Description
Needle triangle t0=(v0,v1,v2) with short interior edge v0-v1=0.001. Below-neighbor t1=(v1,v0,v3) shares the short edge (making it interior, n=2), so link(edge)={v2,v3}. Flanking triangles t2=(v0,v4,v2) and t3=(v1,v2,v4) introduce v4 as an extra common neighbor of both v0 and v1. link(v0)∩link(v1)={v2,v3,v4} ⊋ {v2,v3} → link condition fails → flip path.
Reproducer recipe
v0=(0,0,0), v1=(0.001,0,0), v2=(0.5,0.866,0), v3=(0.5,-0.866,0), v4=(1,0,0); t0=(v0,v1,v2), t1=(v1,v0,v3), t2=(v0,v4,v2), t3=(v1,v2,v4); edge_shared(v0,v1,2); vertex_pair_distance_lt(v0,v1,0.002); triangle_area_lt(0,0.01); triangle_aspect_ratio_gt(0,100).
Expected kernel behavior
Branch 2 fires; does_satisfy_link_condition returns false for v0-v1 collapse; algorithm switches to flip.
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.5, 20 -0.866, 21 0.0 22 ], 23 [ 24 1.0, 25 0.0, 26 0.0 27 ] 28 ], 29 "triangles": [ 30 [ 31 0, 32 1, 33 2 34 ], 35 [ 36 1, 37 0, 38 3 39 ], 40 [ 41 0, 42 4, 43 2 44 ], 45 [ 46 1, 47 2, 48 4 49 ] 50 ], 51 "metadata": { 52 "id": "Me501", 53 "schema_version": 0, 54 "defect_class": "needle_triangle", 55 "title": "remove_almost_degenerate_faces needle_non_collapsible: extra shared neighbor v4 violates link condition for short edge v0-v1=0.001; flip path (Branch 2)", 56 "assertions": [ 57 { 58 "kind": "edge_shared_by_n_triangles", 59 "edge": [ 60 0, 61 1 62 ], 63 "n": 2 64 }, 65 { 66 "kind": "vertex_pair_distance_lt", 67 "pair": [ 68 0, 69 1 70 ], 71 "lt": 0.002 72 }, 73 { 74 "kind": "triangle_area_lt", 75 "triangle": 0, 76 "lt": 0.01 77 }, 78 { 79 "kind": "triangle_aspect_ratio_gt", 80 "triangle": 0, 81 "gt": 100.0 82 } 83 ] 84 } 85}