mesh-examples/12-14-mesh/Me503.mesh.json
Sources
- CGAL PMP `PMP.remove_almost_degenerate_faces.face_range` Branch 4 (*Needle flip impossible*: `if(halfedge(w, x, tmesh).second)` @ line 1087)
- `MESH_HEAL_COVERAGE.md`.
Description
Needle t0=(v0,v1,v2) with short interior edge v0-v1=0.001 shared by below-neighbor t1=(v1,v0,v3). Flipping v0-v1 in the t0/t1 pair would create edge v2-v3, but blocking triangle t2=(v2,v3,v4) already introduces edge v2-v3 (n=1 boundary). halfedge(v2,v3) exists → flip would create a duplicate edge → Branch 4 fires; face is marked for deferred processing.
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=(v2,v3,v4); edge_shared(v0,v1,2); edge_shared(v2,v3,1); vertex_pair_distance_lt(v0,v1,0.002); triangle_area_lt(0,0.01); triangle_aspect_ratio_gt(0,100).
Expected kernel behavior
Branch 4 fires; halfedge(v2,v3) lookup succeeds; face is skipped/deferred.
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 2, 42 3, 43 4 44 ] 45 ], 46 "metadata": { 47 "id": "Me503", 48 "schema_version": 0, 49 "defect_class": "needle_triangle", 50 "title": "remove_almost_degenerate_faces needle_flip_impossible: edge v2-v3 pre-exists; flip of short edge v0-v1=0.001 blocked (Branch 4)", 51 "assertions": [ 52 { 53 "kind": "edge_shared_by_n_triangles", 54 "edge": [ 55 0, 56 1 57 ], 58 "n": 2 59 }, 60 { 61 "kind": "edge_shared_by_n_triangles", 62 "edge": [ 63 2, 64 3 65 ], 66 "n": 1 67 }, 68 { 69 "kind": "vertex_pair_distance_lt", 70 "pair": [ 71 0, 72 1 73 ], 74 "lt": 0.002 75 }, 76 { 77 "kind": "triangle_area_lt", 78 "triangle": 0, 79 "lt": 0.01 80 }, 81 { 82 "kind": "triangle_aspect_ratio_gt", 83 "triangle": 0, 84 "gt": 100.0 85 } 86 ] 87 } 88}