mesh-examples/12-14-mesh/Me070.mesh.json
Sources
- CGAL `PMP.Polygon_soup_orienter.duplicate_singular_vertices` Branches 1–5 (*incident_polygon_collection*, *vertex_iteration*, *link_cc_count*, *non_manifold_vertex*)
- `MESH_HEAL_COVERAGE.md`.
Description
vertex 0 is a singular (bowtie) vertex in the XY plane. Two triangles — upper fan (v0,v1,v2) and lower fan (v0,v3,v4) — share only v0 with no shared edge. The vertex link has 2 connected components; removing v0 disconnects the neighborhood. All four edges at v0 are boundary edges (incident on 1 triangle each). The duplicate_singular_vertices algorithm detects nb_link_ccs=2 and marks v0 for duplication.
Reproducer recipe
5 vertices; t0=(v0,v1,v2) with v1=(1,1,0), v2=(-1,1,0); t1=(v0,v3,v4) with v3=(1,-1,0), v4=(-1,-1,0); no shared edge between t0 and t1.
Expected kernel behavior
split v0 into two copies — one per fan — making each fan locally manifold; total vertex count increases by 1.
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 1.0, 11 0.0 12 ], 13 [ 14 -1.0, 15 1.0, 16 0.0 17 ], 18 [ 19 1.0, 20 -1.0, 21 0.0 22 ], 23 [ 24 -1.0, 25 -1.0, 26 0.0 27 ] 28 ], 29 "triangles": [ 30 [ 31 0, 32 1, 33 2 34 ], 35 [ 36 0, 37 3, 38 4 39 ] 40 ], 41 "metadata": { 42 "id": "Me070", 43 "schema_version": 0, 44 "defect_class": "non_manifold_vertex", 45 "title": "duplicate_singular_vertices: minimal bowtie \u2014 2-fan vertex in XY plane", 46 "assertions": [ 47 { 48 "kind": "edge_shared_by_n_triangles", 49 "edge": [ 50 0, 51 1 52 ], 53 "n": 1 54 }, 55 { 56 "kind": "edge_shared_by_n_triangles", 57 "edge": [ 58 0, 59 2 60 ], 61 "n": 1 62 }, 63 { 64 "kind": "edge_shared_by_n_triangles", 65 "edge": [ 66 0, 67 3 68 ], 69 "n": 1 70 }, 71 { 72 "kind": "edge_shared_by_n_triangles", 73 "edge": [ 74 0, 75 4 76 ], 77 "n": 1 78 }, 79 { 80 "kind": "vertex_fan_disconnected", 81 "vertex": 0 82 } 83 ] 84 } 85}