mesh-examples/12-14-mesh/Me1180.mesh.json
Sources
- CGAL PMP `triangulate_hole.main` Branch 4 (*threshold_override*: `if(get_parameter(np, internal_np::threshold_distance) != ...) {` @ line 217)
- `MESH_HEAL_COVERAGE.md`.
Description
A planar regular hexagonal hole bordered by six hat-triangles. When the caller provides an explicit threshold_distance named parameter, Branch 4 fires and the user-supplied value replaces the default bbox-height-based computation. The hex corners all lie on z=0 (planar), so any positive threshold enables CDT2. Branch 4 fires before the CDT2 path selection. V=12, E=18, F=6, chi=0.
Reproducer recipe
Hex corners r0..r5 at unit radius z=0; hat outer o0..o5 at radius 2; six hat tris; hole_boundary [r0,r1,r2,r3,r4,r5]; euler V=12,E=18,F=6,chi=0.
Expected kernel behavior
Branch 4 fires; get_parameter detects explicit threshold_distance; user value used instead of bbox height; CDT2 planarity gate uses explicit threshold.
Expected validation
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1{ 2 "vertices": [ 3 [ 4 1.0, 5 0.0, 6 0.0 7 ], 8 [ 9 0.5000000000000001, 10 0.8660254037844386, 11 0.0 12 ], 13 [ 14 -0.49999999999999983, 15 0.8660254037844387, 16 0.0 17 ], 18 [ 19 -1.0, 20 1.2246467991473532e-16, 21 0.0 22 ], 23 [ 24 -0.5000000000000004, 25 -0.8660254037844384, 26 0.0 27 ], 28 [ 29 0.5000000000000001, 30 -0.8660254037844386, 31 0.0 32 ], 33 [ 34 2.0, 35 0.0, 36 0.0 37 ], 38 [ 39 1.0000000000000002, 40 1.7320508075688772, 41 0.0 42 ], 43 [ 44 -0.9999999999999997, 45 1.7320508075688774, 46 0.0 47 ], 48 [ 49 -2.0, 50 2.4492935982947064e-16, 51 0.0 52 ], 53 [ 54 -1.0000000000000009, 55 -1.7320508075688767, 56 0.0 57 ], 58 [ 59 1.0000000000000002, 60 -1.7320508075688772, 61 0.0 62 ] 63 ], 64 "triangles": [ 65 [ 66 0, 67 6, 68 1 69 ], 70 [ 71 1, 72 7, 73 2 74 ], 75 [ 76 2, 77 8, 78 3 79 ], 80 [ 81 3, 82 9, 83 4 84 ], 85 [ 86 4, 87 10, 88 5 89 ], 90 [ 91 5, 92 11, 93 0 94 ] 95 ], 96 "metadata": { 97 "id": "Me1180", 98 "schema_version": 0, 99 "defect_class": "boundary_hole", 100 "title": "triangulate_hole.main threshold_override: explicit threshold_distance parameter detected and used instead of bbox default; hexagonal hole (Branch 4)", 101 "assertions": [ 102 { 103 "kind": "edge_shared_by_n_triangles", 104 "edge": [ 105 0, 106 1 107 ], 108 "n": 1 109 }, 110 { 111 "kind": "edge_shared_by_n_triangles", 112 "edge": [ 113 1, 114 2 115 ], 116 "n": 1 117 }, 118 { 119 "kind": "edge_shared_by_n_triangles", 120 "edge": [ 121 2, 122 3 123 ], 124 "n": 1 125 }, 126 { 127 "kind": "edge_shared_by_n_triangles", 128 "edge": [ 129 3, 130 4 131 ], 132 "n": 1 133 }, 134 { 135 "kind": "edge_shared_by_n_triangles", 136 "edge": [ 137 4, 138 5 139 ], 140 "n": 1 141 }, 142 { 143 "kind": "edge_shared_by_n_triangles", 144 "edge": [ 145 0, 146 5 147 ], 148 "n": 1 149 }, 150 { 151 "kind": "hole_boundary", 152 "loop": [ 153 0, 154 1, 155 2, 156 3, 157 4, 158 5 159 ] 160 }, 161 { 162 "kind": "edge_shared_by_n_triangles", 163 "edge": [ 164 0, 165 6 166 ], 167 "n": 1 168 }, 169 { 170 "kind": "edge_shared_by_n_triangles", 171 "edge": [ 172 1, 173 6 174 ], 175 "n": 1 176 }, 177 { 178 "kind": "edge_shared_by_n_triangles", 179 "edge": [ 180 1, 181 7 182 ], 183 "n": 1 184 }, 185 { 186 "kind": "edge_shared_by_n_triangles", 187 "edge": [ 188 2, 189 7 190 ], 191 "n": 1 192 }, 193 { 194 "kind": "edge_shared_by_n_triangles", 195 "edge": [ 196 2, 197 8 198 ], 199 "n": 1 200 }, 201 { 202 "kind": "edge_shared_by_n_triangles", 203 "edge": [ 204 3, 205 8 206 ], 207 "n": 1 208 }, 209 { 210 "kind": "edge_shared_by_n_triangles", 211 "edge": [ 212 3, 213 9 214 ], 215 "n": 1 216 }, 217 { 218 "kind": "edge_shared_by_n_triangles", 219 "edge": [ 220 4, 221 9 222 ], 223 "n": 1 224 }, 225 { 226 "kind": "edge_shared_by_n_triangles", 227 "edge": [ 228 4, 229 10 230 ], 231 "n": 1 232 }, 233 { 234 "kind": "edge_shared_by_n_triangles", 235 "edge": [ 236 5, 237 10 238 ], 239 "n": 1 240 }, 241 { 242 "kind": "edge_shared_by_n_triangles", 243 "edge": [ 244 5, 245 11 246 ], 247 "n": 1 248 }, 249 { 250 "kind": "edge_shared_by_n_triangles", 251 "edge": [ 252 0, 253 11 254 ], 255 "n": 1 256 }, 257 { 258 "kind": "euler_characteristic", 259 "v": 12, 260 "e": 18, 261 "f": 6, 262 "chi": 0 263 } 264 ] 265 } 266}