mesh-examples/12-14-mesh/Me1090.mesh.json
Sources
- CGAL `PMP.remove_degenerate_faces` Branch 7 @ line 2186 (*degree-3-vertex-in-cap*: `if (degree == 3) { Euler::remove_center_vertex(h, tmesh)
- }`)
- `MESH_HEAL_COVERAGE.md`.
Description
apex vertex 0 at (0.5, 0.289, 0.0001) is the center of a near-flat equilateral cap. It has exactly 3 incident triangles (faces 0, 1, 2) — degree == 3 — and each apex-to-base edge is shared by exactly 2 triangles (interior), while the 3 outer base edges are boundary (shared by 1). CGAL detects the degree==3 condition and invokes `Euler::remove_center_vertex` to collapse the 3 faces into the outer triangle.
Reproducer recipe
apex=(0.5,0.289,0.0001); base v1=(0,0,0), v2=(1,0,0), v3=(0.5,0.577,0); fan t0=(apex,v1,v2), t1=(apex,v2,v3), t2=(apex,v3,v1). Assert apex–base edges n=2 and outer base edges n=1.
Expected kernel behavior
detect degree-3 center vertex; invoke `Euler::remove_center_vertex`; merge 3 faces into 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.289, 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.577, 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": "Me1090", 43 "schema_version": 0, 44 "defect_class": "degenerate_triangle", 45 "title": "degree-3 vertex cap: apex degree==3 in flat fan \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}