mesh-examples/12-14-mesh/Me1091.mesh.json
Sources
- CGAL `PMP.remove_degenerate_faces` Branch 8 @ line 2244 (*single-isolated-degenerate-face*: `if (!detect_cc_of_degenerate_triangles) { // flip the longest edge }`)
- `MESH_HEAL_COVERAGE.md`.
Description
a 3-triangle clean strip (t0,t1,t2) has an open boundary edge (v1,v4). A single degenerate collinear triangle t3=(v1,v5,v4) is attached at that boundary edge; v5=(1.5,0,0) is the midpoint of v1=(1,0,0) and v4=(2,0,0) on the X axis, making t3 zero-area. t3 has no adjacent degenerate faces, so `detect_cc_of_degenerate_triangles` remains false — CGAL enters the longest-edge flip branch.
Reproducer recipe
strip v0=(0,0,0),v1=(1,0,0),v2=(0.5,1,0),v3=(1.5,1,0),v4=(2,0,0); t0–t2 clean; degenerate t3=(v1,v5,v4) with v5=(1.5,0,0) collinear; edge (v1,v4) n=2; (v1,v5) n=1; (v4,v5) n=1.
Expected kernel behavior
detect single isolated degenerate face; set detect_cc=false; attempt longest-edge flip on t3.
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 1.0, 10 0.0, 11 0.0 12 ], 13 [ 14 0.5, 15 1.0, 16 0.0 17 ], 18 [ 19 1.5, 20 1.0, 21 0.0 22 ], 23 [ 24 2.0, 25 0.0, 26 0.0 27 ], 28 [ 29 1.5, 30 0.0, 31 0.0 32 ] 33 ], 34 "triangles": [ 35 [ 36 0, 37 1, 38 2 39 ], 40 [ 41 1, 42 3, 43 2 44 ], 45 [ 46 1, 47 4, 48 3 49 ], 50 [ 51 1, 52 5, 53 4 54 ] 55 ], 56 "metadata": { 57 "id": "Me1091", 58 "schema_version": 0, 59 "defect_class": "degenerate_triangle", 60 "title": "single isolated degenerate face attached at strip boundary: flip-candidate branch", 61 "assertions": [ 62 { 63 "kind": "triangle_area_lt", 64 "triangle": 3, 65 "lt": 1e-12 66 }, 67 { 68 "kind": "edge_shared_by_n_triangles", 69 "edge": [ 70 1, 71 4 72 ], 73 "n": 2 74 }, 75 { 76 "kind": "edge_shared_by_n_triangles", 77 "edge": [ 78 1, 79 5 80 ], 81 "n": 1 82 }, 83 { 84 "kind": "edge_shared_by_n_triangles", 85 "edge": [ 86 4, 87 5 88 ], 89 "n": 1 90 } 91 ] 92 } 93}