mesh-examples/12-14-mesh/Me684.mesh.json
Sources
- MeshFix `holeFilling::TriangulateHole@L98` Branch 5 (*OPTIMIZATION_TIMEOUT*: `if ((i--) < 0) { JMesh::warning("Taking too long…")
- break
- }`)
- `MESH_HEAL_COVERAGE.md`.
Description
24-vertex mesh with a 12-sided polygon hole (regular dodecagon, radius 3). Twelve outer frame triangles surround the hole, each connecting two adjacent boundary vertices to a dedicated outer vertex (radius 5). The hole has 12 boundary edges — a large/complex boundary that exhausts the post-fill edge-swap optimization budget. When the countdown index i reaches negative, Branch 5 fires: a warning is logged and the optimization loop breaks early. Euler: V=24, E=36, F=12, chi=0.
Reproducer recipe
boundary[0..11] = 12-gon radius 3; frame[0..11] = outer apices radius 5; t_k=(boundary[k],boundary[k+1],frame[k]) for k=0..11; 12 boundary edges of hole each n=1; assert_hole_boundary(boundary); euler V=24,E=36,F=12,chi=0.
Expected kernel behavior
Branch 5 fires; i decremented below 0 before optimization converges; JMesh::warning("Taking too long") emitted; break exits loop.
Expected validation
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1{ 2 "vertices": [ 3 [ 4 3.0, 5 0.0, 6 0.0 7 ], 8 [ 9 2.598076211353316, 10 1.4999999999999998, 11 0.0 12 ], 13 [ 14 1.5000000000000004, 15 2.598076211353316, 16 0.0 17 ], 18 [ 19 1.8369701987210297e-16, 20 3.0, 21 0.0 22 ], 23 [ 24 -1.4999999999999996, 25 2.598076211353316, 26 0.0 27 ], 28 [ 29 -2.598076211353316, 30 1.4999999999999998, 31 0.0 32 ], 33 [ 34 -3.0, 35 3.6739403974420594e-16, 36 0.0 37 ], 38 [ 39 -2.5980762113533165, 40 -1.4999999999999993, 41 0.0 42 ], 43 [ 44 -1.5000000000000013, 45 -2.598076211353315, 46 0.0 47 ], 48 [ 49 -5.51091059616309e-16, 50 -3.0, 51 0.0 52 ], 53 [ 54 1.5000000000000004, 55 -2.598076211353316, 56 0.0 57 ], 58 [ 59 2.598076211353315, 60 -1.5000000000000013, 61 0.0 62 ], 63 [ 64 4.8296291314453415, 65 1.2940952255126037, 66 0.0 67 ], 68 [ 69 3.5355339059327378, 70 3.5355339059327373, 71 0.0 72 ], 73 [ 74 1.2940952255126037, 75 4.8296291314453415, 76 0.0 77 ], 78 [ 79 -1.2940952255126033, 80 4.8296291314453415, 81 0.0 82 ], 83 [ 84 -3.5355339059327373, 85 3.5355339059327378, 86 0.0 87 ], 88 [ 89 -4.829629131445341, 90 1.294095225512605, 91 0.0 92 ], 93 [ 94 -4.8296291314453415, 95 -1.294095225512604, 96 0.0 97 ], 98 [ 99 -3.5355339059327395, 100 -3.5355339059327355, 101 0.0 102 ], 103 [ 104 -1.2940952255126033, 105 -4.8296291314453415, 106 0.0 107 ], 108 [ 109 1.2940952255126015, 110 -4.829629131445342, 111 0.0 112 ], 113 [ 114 3.535533905932737, 115 -3.5355339059327386, 116 0.0 117 ], 118 [ 119 4.829629131445341, 120 -1.294095225512608, 121 0.0 122 ] 123 ], 124 "triangles": [ 125 [ 126 0, 127 1, 128 12 129 ], 130 [ 131 1, 132 2, 133 13 134 ], 135 [ 136 2, 137 3, 138 14 139 ], 140 [ 141 3, 142 4, 143 15 144 ], 145 [ 146 4, 147 5, 148 16 149 ], 150 [ 151 5, 152 6, 153 17 154 ], 155 [ 156 6, 157 7, 158 18 159 ], 160 [ 161 7, 162 8, 163 19 164 ], 165 [ 166 8, 167 9, 168 20 169 ], 170 [ 171 9, 172 10, 173 21 174 ], 175 [ 176 10, 177 11, 178 22 179 ], 180 [ 181 11, 182 0, 183 23 184 ] 185 ], 186 "metadata": { 187 "id": "Me684", 188 "schema_version": 0, 189 "defect_class": "hole_in_hull", 190 "title": "TriangulateHole@L98 OPTIMIZATION_TIMEOUT: 12-gon boundary hole; swap-budget i<0; 'taking too long'; break optimization (Branch 5)", 191 "assertions": [ 192 { 193 "kind": "edge_shared_by_n_triangles", 194 "edge": [ 195 0, 196 1 197 ], 198 "n": 1 199 }, 200 { 201 "kind": "edge_shared_by_n_triangles", 202 "edge": [ 203 1, 204 2 205 ], 206 "n": 1 207 }, 208 { 209 "kind": "edge_shared_by_n_triangles", 210 "edge": [ 211 2, 212 3 213 ], 214 "n": 1 215 }, 216 { 217 "kind": "edge_shared_by_n_triangles", 218 "edge": [ 219 3, 220 4 221 ], 222 "n": 1 223 }, 224 { 225 "kind": "edge_shared_by_n_triangles", 226 "edge": [ 227 4, 228 5 229 ], 230 "n": 1 231 }, 232 { 233 "kind": "edge_shared_by_n_triangles", 234 "edge": [ 235 5, 236 6 237 ], 238 "n": 1 239 }, 240 { 241 "kind": "edge_shared_by_n_triangles", 242 "edge": [ 243 6, 244 7 245 ], 246 "n": 1 247 }, 248 { 249 "kind": "edge_shared_by_n_triangles", 250 "edge": [ 251 7, 252 8 253 ], 254 "n": 1 255 }, 256 { 257 "kind": "edge_shared_by_n_triangles", 258 "edge": [ 259 8, 260 9 261 ], 262 "n": 1 263 }, 264 { 265 "kind": "edge_shared_by_n_triangles", 266 "edge": [ 267 9, 268 10 269 ], 270 "n": 1 271 }, 272 { 273 "kind": "edge_shared_by_n_triangles", 274 "edge": [ 275 10, 276 11 277 ], 278 "n": 1 279 }, 280 { 281 "kind": "edge_shared_by_n_triangles", 282 "edge": [ 283 0, 284 11 285 ], 286 "n": 1 287 }, 288 { 289 "kind": "hole_boundary", 290 "loop": [ 291 0, 292 1, 293 2, 294 3, 295 4, 296 5, 297 6, 298 7, 299 8, 300 9, 301 10, 302 11 303 ] 304 }, 305 { 306 "kind": "euler_characteristic", 307 "v": 24, 308 "e": 36, 309 "f": 12, 310 "chi": 0 311 } 312 ] 313 } 314}