mesh-examples/12-14-mesh/Me034.mesh.json
Sources
- CGAL `PMP.remove_degenerate_faces` Branch 12 @ line 2256 (*edge-flip-impossible*)
- `MESH_HEAL_COVERAGE.md`.
Description
a diamond quad (v0=top, v1=left, v2=bottom, v3=right) is split by two clean triangles along diagonal `(v1,v3)`. A degenerate collinear triangle (face 2) also uses edge `(v1,v3)` — the diagonal is now 3-way shared. CGAL attempts to flip the degenerate face's longest edge, but `(v1,v3)` already exists, making the flip impossible. The face is removed directly; `all_removed=false`.
Reproducer recipe
v0=(0.5,1,0), v1=(0,0,0), v2=(0.5,-1,0), v3=(1,0,0), v4=(0.5,0,0); face 0=`(v0,v1,v3)`, face 1=`(v2,v3,v1)`, face 2=`(v1,v4,v3)` — collinear degenerate; edge `(v1,v3)` shared by all three.
Expected kernel behavior
detect flip-impossible condition for edge `(v1,v3)`; fall back to direct face removal; flag `all_removed=false`.
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.5, 5 1.0, 6 0.0 7 ], 8 [ 9 0.0, 10 0.0, 11 0.0 12 ], 13 [ 14 0.5, 15 -1.0, 16 0.0 17 ], 18 [ 19 1.0, 20 0.0, 21 0.0 22 ], 23 [ 24 0.5, 25 0.0, 26 0.0 27 ] 28 ], 29 "triangles": [ 30 [ 31 0, 32 1, 33 3 34 ], 35 [ 36 2, 37 3, 38 1 39 ], 40 [ 41 1, 42 4, 43 3 44 ] 45 ], 46 "metadata": { 47 "id": "Me034", 48 "schema_version": 0, 49 "defect_class": "degenerate_triangle", 50 "title": "flip-impossible degenerate: edge (v1,v3) already shared 3-way \u2014 face removal fallback", 51 "assertions": [ 52 { 53 "kind": "triangle_area_lt", 54 "triangle": 2, 55 "lt": 1e-12 56 }, 57 { 58 "kind": "edge_shared_by_n_triangles", 59 "edge": [ 60 1, 61 3 62 ], 63 "n": 3 64 } 65 ] 66 } 67}