mesh-examples/12-14-mesh/Me260.mesh.json
Sources
- CGAL `PMP.remove_degenerate_edges.range_with_face_set` Branch 1 @ line 1558 (*zero_length_link_condition_ok*: `does_satisfy_link_condition` true → `collapse_edge`)
- `MESH_HEAL_COVERAGE.md`.
Description
A 3-triangle fan with a near-degenerate interior edge (v0,v1) where v0≈v1 (distance≈1e-10). The edge is shared by 2 triangles (interior). The link condition is satisfied: the neighbourhoods of v0 and v1, excluding the degenerate edge, form a single connected region, so Branch 1 directly collapses the edge via Euler::collapse_edge.
Reproducer recipe
v0=(0,0,0), v1=(1e-10,0,0), v2=(1,1,0), v3=(-1,1,0). t0=(v0,v1,v2), t1=(v1,v0,v3), t2=(v0,v2,v3).
Expected kernel behavior
does_satisfy_link_condition=true → collapse_edge directly removes the degenerate edge.
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 1e-10, 10 0.0, 11 0.0 12 ], 13 [ 14 1.0, 15 1.0, 16 0.0 17 ], 18 [ 19 -1.0, 20 1.0, 21 0.0 22 ] 23 ], 24 "triangles": [ 25 [ 26 0, 27 1, 28 2 29 ], 30 [ 31 1, 32 0, 33 3 34 ], 35 [ 36 0, 37 2, 38 3 39 ] 40 ], 41 "metadata": { 42 "id": "Me260", 43 "schema_version": 0, 44 "defect_class": "degenerate_edge", 45 "title": "range_with_face_set link_condition_ok: zero-length edge v0\u2248v1 satisfies link condition for direct collapse", 46 "assertions": [ 47 { 48 "kind": "vertex_pair_distance_lt", 49 "pair": [ 50 0, 51 1 52 ], 53 "lt": 1e-09 54 }, 55 { 56 "kind": "edge_shared_by_n_triangles", 57 "edge": [ 58 0, 59 1 60 ], 61 "n": 2 62 } 63 ] 64 } 65}