mesh-examples/12-14-mesh/Me030.mesh.json
Sources
- CGAL `PMP.remove_degenerate_faces` Branch 7 @ line 2186 (*degree-3-vertex-in-cap*)
- `MESH_HEAL_COVERAGE.md`.
Description
vertex 0 (the apex) is shared by exactly 3 triangles forming a nearly flat cap. CGAL detects the `degree==3` condition and removes the center vertex via `Euler::remove_center_vertex`, collapsing the 3 faces into a single triangle. The apex is at z=0.0001, making the cap almost planar.
Reproducer recipe
apex at `(0.5,0.333,0.0001)`; base triangle `vA=(0,0,0), vB=(1,0,0), vC=(0.5,0.666,0)`. Three fan triangles: `(apex,vA,vB)`, `(apex,vB,vC)`, `(apex,vC,vA)`. Apex has degree 3; each apex-to-base edge is shared by exactly 2 triangles; each outer base edge is a boundary edge.
Expected kernel behavior
detect degree-3 center vertex in cap; invoke `Euler::remove_center_vertex`; merge the 3 faces into the outer boundary triangle.
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 0.333, 6 0.0001 7 ], 8 [ 9 0.0, 10 0.0, 11 0.0 12 ], 13 [ 14 1.0, 15 0.0, 16 0.0 17 ], 18 [ 19 0.5, 20 0.666, 21 0.0 22 ] 23 ], 24 "triangles": [ 25 [ 26 0, 27 1, 28 2 29 ], 30 [ 31 0, 32 2, 33 3 34 ], 35 [ 36 0, 37 3, 38 1 39 ] 40 ], 41 "metadata": { 42 "id": "Me030", 43 "schema_version": 0, 44 "defect_class": "degenerate_triangle", 45 "title": "degree-3 vertex cap: apex with 3 incident triangles \u2014 remove_center_vertex branch", 46 "assertions": [ 47 { 48 "kind": "edge_shared_by_n_triangles", 49 "edge": [ 50 0, 51 1 52 ], 53 "n": 2 54 }, 55 { 56 "kind": "edge_shared_by_n_triangles", 57 "edge": [ 58 0, 59 2 60 ], 61 "n": 2 62 }, 63 { 64 "kind": "edge_shared_by_n_triangles", 65 "edge": [ 66 0, 67 3 68 ], 69 "n": 2 70 }, 71 { 72 "kind": "edge_shared_by_n_triangles", 73 "edge": [ 74 1, 75 2 76 ], 77 "n": 1 78 }, 79 { 80 "kind": "edge_shared_by_n_triangles", 81 "edge": [ 82 2, 83 3 84 ], 85 "n": 1 86 }, 87 { 88 "kind": "edge_shared_by_n_triangles", 89 "edge": [ 90 1, 91 3 92 ], 93 "n": 1 94 } 95 ] 96 } 97}