mesh-examples/12-14-mesh/Me035.mesh.json
Sources
- CGAL `PMP.remove_degenerate_faces` Branch 13 @ line 2292 (*border-face-removal*)
- `MESH_HEAL_COVERAGE.md`.
Description
a manifold strip of 3 clean triangles has an open boundary. A degenerate collinear triangle (face 3) is attached at the open boundary edge `(v3,v4)`. The opposite face across its longest edge is a null face (`GT::null_face()` — a true boundary). No flip is possible; CGAL removes the face directly via `remove_face`.
Reproducer recipe
strip of 3 clean triangles `(v0,v1,v2)`, `(v1,v3,v2)`, `(v1,v4,v3)`; degenerate face 3 = `(v3,v5,v4)` where v3=(1.5,1,0), v5=(1.75,0.5,0), v4=(2,0,0) — v5 is the midpoint of `(v3,v4)` so the three are collinear; face 3 shares edge `(v3,v4)` with face 2 but its remaining edges are boundary.
Expected kernel behavior
detect boundary face with null opposite; skip flip; invoke `remove_face` directly.
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.75, 30 0.5, 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 3, 52 5, 53 4 54 ] 55 ], 56 "metadata": { 57 "id": "Me035", 58 "schema_version": 0, 59 "defect_class": "degenerate_triangle", 60 "title": "border face removal: degenerate triangle on open boundary \u2014 direct remove_face", 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 3, 71 4 72 ], 73 "n": 2 74 }, 75 { 76 "kind": "edge_shared_by_n_triangles", 77 "edge": [ 78 3, 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}