mesh-examples/12-14-mesh/Me079.mesh.json
Sources
- CGAL `PMP.Polygon_soup_orienter.duplicate_singular_vertices` Branch 12 (*polygon_index_replacement*: 4 polygon entries updated)
- `MESH_HEAL_COVERAGE.md`.
Description
vertex 0 is a singular vertex with 2 link CCs. The upper fan is a 4-triangle open strip — all 4 triangles reference v0 and share 3 interior edges at v0 ((v0,v2), (v0,v3), (v0,v4)). The lower fan is a single isolated triangle. This stresses Branch 12 (*polygon_index_replacement*): after duplication, the polygon_index_replacement sub-pass must update v0's index in all 4 strip triangles, not just 1.
Reproducer recipe
v0=(0,0,0); strip outer rim: v1=(-2,1,0), v2=(-1,1,0), v3=(0,1.5,0), v4=(1,1,0), v5=(2,1,0); strip: t0–t3; isolated lower: t4=(v0,v6,v7) with v6=(1,-1,0), v7=(-1,-1,0).
Expected kernel behavior
split v0 into 2 copies; 4 strip triangles reference one copy; lower fan triangle references the duplicate.
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 -2.0, 10 1.0, 11 0.0 12 ], 13 [ 14 -1.0, 15 1.0, 16 0.0 17 ], 18 [ 19 0.0, 20 1.5, 21 0.0 22 ], 23 [ 24 1.0, 25 1.0, 26 0.0 27 ], 28 [ 29 2.0, 30 1.0, 31 0.0 32 ], 33 [ 34 1.0, 35 -1.0, 36 0.0 37 ], 38 [ 39 -1.0, 40 -1.0, 41 0.0 42 ] 43 ], 44 "triangles": [ 45 [ 46 0, 47 1, 48 2 49 ], 50 [ 51 0, 52 2, 53 3 54 ], 55 [ 56 0, 57 3, 58 4 59 ], 60 [ 61 0, 62 4, 63 5 64 ], 65 [ 66 0, 67 6, 68 7 69 ] 70 ], 71 "metadata": { 72 "id": "Me079", 73 "schema_version": 0, 74 "defect_class": "non_manifold_vertex", 75 "title": "duplicate_singular_vertices: 4-triangle open-strip fan plus isolated lower fan at bowtie vertex", 76 "assertions": [ 77 { 78 "kind": "edge_shared_by_n_triangles", 79 "edge": [ 80 0, 81 2 82 ], 83 "n": 2 84 }, 85 { 86 "kind": "edge_shared_by_n_triangles", 87 "edge": [ 88 0, 89 3 90 ], 91 "n": 2 92 }, 93 { 94 "kind": "edge_shared_by_n_triangles", 95 "edge": [ 96 0, 97 4 98 ], 99 "n": 2 100 }, 101 { 102 "kind": "edge_shared_by_n_triangles", 103 "edge": [ 104 0, 105 1 106 ], 107 "n": 1 108 }, 109 { 110 "kind": "edge_shared_by_n_triangles", 111 "edge": [ 112 0, 113 5 114 ], 115 "n": 1 116 }, 117 { 118 "kind": "edge_shared_by_n_triangles", 119 "edge": [ 120 0, 121 6 122 ], 123 "n": 1 124 }, 125 { 126 "kind": "edge_shared_by_n_triangles", 127 "edge": [ 128 0, 129 7 130 ], 131 "n": 1 132 }, 133 { 134 "kind": "vertex_fan_disconnected", 135 "vertex": 0 136 } 137 ] 138 } 139}