mesh-examples/12-14-mesh/Me810.mesh.json
Sources
- CGAL PMP `PMP.merge_duplicated_vertices_in_boundary_cycles` Branch 3 (*merge_delegation*: body of `for(halfedge_descriptor h : cycles) merge_duplicated_vertices_in_boundary_cycle(h, pm, np)`)
- `MESH_HEAL_COVERAGE.md`.
Description
A valid closed tetrahedron — four triangles, four vertices, all six edges each shared by exactly 2 triangles. No boundary halfedge exists, so extract_boundary_cycles returns an empty cycles vector. The for-loop body (which delegates to merge_duplicated_vertices_in_boundary_cycle) never executes — the function is a no-op for closed meshes. This is the reference closed-mesh path for Branch 3. Euler: V=4, E=6, F=4, chi=2 (closed genus-0 surface / sphere topology).
Reproducer recipe
v0=(0,0,0), v1=(1,0,0), v2=(0.5,sqrt(3)/2,0), v3=(0.5,sqrt(3)/6,sqrt(6)/3); t0=(v0,v1,v2), t1=(v0,v3,v1), t2=(v0,v2,v3), t3=(v1,v3,v2); all six edges assert_edge_shared n=2; euler V=4,E=6,F=4,chi=2.
Expected kernel behavior
Branch 3 is the no-op path; extract_boundary_cycles returns empty; the for-loop runs zero iterations; merge_duplicated_vertices_in_boundary_cycle is never called; mesh is returned unchanged.
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 0.5, 20 0.333, 21 1.0 22 ] 23 ], 24 "triangles": [ 25 [ 26 0, 27 2, 28 1 29 ], 30 [ 31 0, 32 1, 33 3 34 ], 35 [ 36 0, 37 3, 38 2 39 ], 40 [ 41 1, 42 2, 43 3 44 ] 45 ], 46 "metadata": { 47 "id": "Me810", 48 "schema_version": 0, 49 "defect_class": "star_triangulate_hole_edge_not_on_boundary", 50 "title": "StarTriangulateHole_edge_not_on_boundary: closed tetrahedron; every edge n==2; returns 0 (Branch 1)", 51 "assertions": [ 52 { 53 "kind": "edge_shared_by_n_triangles", 54 "edge": [ 55 0, 56 1 57 ], 58 "n": 2 59 }, 60 { 61 "kind": "edge_shared_by_n_triangles", 62 "edge": [ 63 0, 64 2 65 ], 66 "n": 2 67 }, 68 { 69 "kind": "edge_shared_by_n_triangles", 70 "edge": [ 71 0, 72 3 73 ], 74 "n": 2 75 }, 76 { 77 "kind": "edge_shared_by_n_triangles", 78 "edge": [ 79 1, 80 2 81 ], 82 "n": 2 83 }, 84 { 85 "kind": "edge_shared_by_n_triangles", 86 "edge": [ 87 1, 88 3 89 ], 90 "n": 2 91 }, 92 { 93 "kind": "edge_shared_by_n_triangles", 94 "edge": [ 95 2, 96 3 97 ], 98 "n": 2 99 }, 100 { 101 "kind": "euler_characteristic", 102 "v": 4, 103 "e": 6, 104 "f": 4, 105 "chi": 2 106 } 107 ] 108 } 109}