mesh-examples/12-14-mesh/Me261.mesh.json
Sources
- CGAL `PMP.remove_degenerate_edges.range_with_face_set` Branch 2 @ line 1581 (*zero_length_link_condition_violated*: `does_satisfy_link_condition` false → `remove_a_border_edge` or complex path)
- `MESH_HEAL_COVERAGE.md`.
Description
A flat diamond mesh (v0≈v1, both connecting to same vertices v2 and v3). The edge (v0,v1) is interior (n=2). Because both link rings share v2 and v3, the link condition is violated: collapsing would create a non-manifold vertex. Both triangles have near-zero area. Branch 2 fires: does_satisfy_link_condition=false → complex removal.
Reproducer recipe
v0=(0,0,0), v1=(1e-10,0,0), v2=(0,1,0), v3=(0,-1,0). t0=(v0,v1,v2), t1=(v1,v0,v3).
Expected kernel behavior
does_satisfy_link_condition=false → escalate to marked_faces/remove_a_border_edge path.
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 0.0, 15 1.0, 16 0.0 17 ], 18 [ 19 0.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 "metadata": { 37 "id": "Me261", 38 "schema_version": 0, 39 "defect_class": "degenerate_edge", 40 "title": "range_with_face_set link_condition_violated: zero-length edge v0\u2248v1 with shared neighbours \u2192 link condition fails", 41 "assertions": [ 42 { 43 "kind": "edge_shared_by_n_triangles", 44 "edge": [ 45 0, 46 1 47 ], 48 "n": 2 49 }, 50 { 51 "kind": "vertex_pair_distance_lt", 52 "pair": [ 53 0, 54 1 55 ], 56 "lt": 1e-09 57 }, 58 { 59 "kind": "triangle_area_lt", 60 "triangle": 0, 61 "lt": 1e-07 62 }, 63 { 64 "kind": "triangle_area_lt", 65 "triangle": 1, 66 "lt": 1e-07 67 } 68 ] 69 } 70}