mesh-examples/12-14-mesh/Me1163.mesh.json
Sources
- CGAL PMP `triangulate_and_refine_hole.main` Branch 3 (*triangulation_failure_handling*: `triangulate_hole(mesh, border_halfedge, std::back_inserter(patch_facets), ...)
- ` @ line 394)
- `MESH_HEAL_COVERAGE.md`.
Description
A pentagonal hole bordered by five hat-triangles. triangulate_and_refine_hole calls triangulate_hole first (Branch 3 fires), collecting 3 new face descriptors in patch_facets. The patch is non-empty so refine proceeds on it. V=10, E=15, F=5, chi=0.
Reproducer recipe
Pentagon corners p0=(0,0,0), p1=(2,0,0), p2=(2.6,1.9,0), p3=(1,3,0), p4=(-0.6,1.9,0); hat outer p5..p9; five hat tris; hole edges n=1; hole_boundary [p0,p1,p2,p3,p4]; euler V=10,E=15,F=5,chi=0.
Expected kernel behavior
Branch 3 fires; triangulate_hole called with back_inserter into patch_facets; 3 new faces fill the 5-edge hole; patch_facets non-empty; refine runs on the patch.
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 0.0, 11 0.0 12 ], 13 [ 14 2.6, 15 1.9, 16 0.0 17 ], 18 [ 19 1.0, 20 3.0, 21 0.0 22 ], 23 [ 24 -0.6, 25 1.9, 26 0.0 27 ], 28 [ 29 1.0, 30 -1.2, 31 0.0 32 ], 33 [ 34 3.5, 35 0.5, 36 0.0 37 ], 38 [ 39 3.0, 40 3.0, 41 0.0 42 ], 43 [ 44 1.0, 45 4.2, 46 0.0 47 ], 48 [ 49 -1.5, 50 0.5, 51 0.0 52 ] 53 ], 54 "triangles": [ 55 [ 56 0, 57 5, 58 1 59 ], 60 [ 61 1, 62 6, 63 2 64 ], 65 [ 66 2, 67 7, 68 3 69 ], 70 [ 71 3, 72 8, 73 4 74 ], 75 [ 76 4, 77 9, 78 0 79 ] 80 ], 81 "metadata": { 82 "id": "Me1163", 83 "schema_version": 0, 84 "defect_class": "boundary_hole", 85 "title": "triangulate_and_refine_hole.main triangulation_failure_handling: 5-edge hole; triangulate_hole fills patch; refine runs on non-empty result (Branch 3)", 86 "assertions": [ 87 { 88 "kind": "edge_shared_by_n_triangles", 89 "edge": [ 90 0, 91 1 92 ], 93 "n": 1 94 }, 95 { 96 "kind": "edge_shared_by_n_triangles", 97 "edge": [ 98 1, 99 2 100 ], 101 "n": 1 102 }, 103 { 104 "kind": "edge_shared_by_n_triangles", 105 "edge": [ 106 2, 107 3 108 ], 109 "n": 1 110 }, 111 { 112 "kind": "edge_shared_by_n_triangles", 113 "edge": [ 114 3, 115 4 116 ], 117 "n": 1 118 }, 119 { 120 "kind": "edge_shared_by_n_triangles", 121 "edge": [ 122 0, 123 4 124 ], 125 "n": 1 126 }, 127 { 128 "kind": "edge_shared_by_n_triangles", 129 "edge": [ 130 0, 131 5 132 ], 133 "n": 1 134 }, 135 { 136 "kind": "edge_shared_by_n_triangles", 137 "edge": [ 138 1, 139 5 140 ], 141 "n": 1 142 }, 143 { 144 "kind": "edge_shared_by_n_triangles", 145 "edge": [ 146 1, 147 6 148 ], 149 "n": 1 150 }, 151 { 152 "kind": "edge_shared_by_n_triangles", 153 "edge": [ 154 2, 155 6 156 ], 157 "n": 1 158 }, 159 { 160 "kind": "edge_shared_by_n_triangles", 161 "edge": [ 162 2, 163 7 164 ], 165 "n": 1 166 }, 167 { 168 "kind": "edge_shared_by_n_triangles", 169 "edge": [ 170 3, 171 7 172 ], 173 "n": 1 174 }, 175 { 176 "kind": "edge_shared_by_n_triangles", 177 "edge": [ 178 3, 179 8 180 ], 181 "n": 1 182 }, 183 { 184 "kind": "edge_shared_by_n_triangles", 185 "edge": [ 186 4, 187 8 188 ], 189 "n": 1 190 }, 191 { 192 "kind": "edge_shared_by_n_triangles", 193 "edge": [ 194 4, 195 9 196 ], 197 "n": 1 198 }, 199 { 200 "kind": "edge_shared_by_n_triangles", 201 "edge": [ 202 0, 203 9 204 ], 205 "n": 1 206 }, 207 { 208 "kind": "hole_boundary", 209 "loop": [ 210 0, 211 1, 212 2, 213 3, 214 4 215 ] 216 }, 217 { 218 "kind": "euler_characteristic", 219 "v": 10, 220 "e": 15, 221 "f": 5, 222 "chi": 0 223 } 224 ] 225 } 226}