mesh-examples/12-14-mesh/Me594.mesh.json
Sources
- MeshFix `holeFilling::TriangulateHole@L157` Branch 5 (*DELAUNAY_CONSTRAINED_SWAP*: `e1->delaunayMinAngle()` → swap
- sw++)
- `MESH_HEAL_COVERAGE.md`.
Description
Eight-vertex mesh: quadrilateral hole boundary v0=(0,0,0), v1=(3,0,0), v2=(2,1,0), v3=(0,1,0) with 4 outer rim triangles (one per boundary edge) plus 2 fill triangles using the non-Delaunay diagonal (v0,v2). The fill diagonal (v0,v2) produces an obtuse triangle pair; the alternative diagonal (v1,v3) gives a better minimum angle → delaunayMinAngle() returns true → swap accepted → sw++. All boundary vertices now interior (n=2 shared); 8 outer rim edges n=1. Euler: V=8, E=13, F=6, chi=1.
Reproducer recipe
v0-v3=quad hole, e0=(1.5,-1,0), e1=(4,0.5,0), e2=(1,2,0), e3=(-1,0.5,0); t0=(v0,v1,e0), t1=(v1,v2,e1), t2=(v2,v3,e2), t3=(v3,v0,e3), tf0=(v0,v1,v2), tf1=(v0,v2,v3); quad edges n=2; diagonal (v0,v2) n=2; rim outer edges n=1; euler V=8,E=13,F=6,chi=1.
Expected kernel behavior
Branch 5 fires; delaunayMinAngle() finds diagonal (v0,v2) sub-optimal; swap to (v1,v3) accepted; sw counter incremented; quality of fill triangulation improved.
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 3.0, 10 0.0, 11 0.0 12 ], 13 [ 14 2.0, 15 1.0, 16 0.0 17 ], 18 [ 19 0.0, 20 1.0, 21 0.0 22 ], 23 [ 24 1.5, 25 -1.0, 26 0.0 27 ], 28 [ 29 4.0, 30 0.5, 31 0.0 32 ], 33 [ 34 1.0, 35 2.0, 36 0.0 37 ], 38 [ 39 -1.0, 40 0.5, 41 0.0 42 ] 43 ], 44 "triangles": [ 45 [ 46 0, 47 1, 48 4 49 ], 50 [ 51 1, 52 2, 53 5 54 ], 55 [ 56 2, 57 3, 58 6 59 ], 60 [ 61 3, 62 0, 63 7 64 ], 65 [ 66 0, 67 1, 68 2 69 ], 70 [ 71 0, 72 2, 73 3 74 ] 75 ], 76 "metadata": { 77 "id": "Me594", 78 "schema_version": 0, 79 "defect_class": "hole_in_hull", 80 "title": "holeFilling_TriangulateHole_delaunay_constrained_swap: non-Delaunay fill diagonal triggers edge swap; sw++ fires (Branch 5)", 81 "assertions": [ 82 { 83 "kind": "edge_shared_by_n_triangles", 84 "edge": [ 85 0, 86 2 87 ], 88 "n": 2 89 }, 90 { 91 "kind": "edge_shared_by_n_triangles", 92 "edge": [ 93 0, 94 1 95 ], 96 "n": 2 97 }, 98 { 99 "kind": "edge_shared_by_n_triangles", 100 "edge": [ 101 1, 102 2 103 ], 104 "n": 2 105 }, 106 { 107 "kind": "edge_shared_by_n_triangles", 108 "edge": [ 109 2, 110 3 111 ], 112 "n": 2 113 }, 114 { 115 "kind": "edge_shared_by_n_triangles", 116 "edge": [ 117 0, 118 3 119 ], 120 "n": 2 121 }, 122 { 123 "kind": "edge_shared_by_n_triangles", 124 "edge": [ 125 0, 126 4 127 ], 128 "n": 1 129 }, 130 { 131 "kind": "edge_shared_by_n_triangles", 132 "edge": [ 133 1, 134 4 135 ], 136 "n": 1 137 }, 138 { 139 "kind": "edge_shared_by_n_triangles", 140 "edge": [ 141 1, 142 5 143 ], 144 "n": 1 145 }, 146 { 147 "kind": "edge_shared_by_n_triangles", 148 "edge": [ 149 2, 150 5 151 ], 152 "n": 1 153 }, 154 { 155 "kind": "edge_shared_by_n_triangles", 156 "edge": [ 157 2, 158 6 159 ], 160 "n": 1 161 }, 162 { 163 "kind": "edge_shared_by_n_triangles", 164 "edge": [ 165 3, 166 6 167 ], 168 "n": 1 169 }, 170 { 171 "kind": "edge_shared_by_n_triangles", 172 "edge": [ 173 3, 174 7 175 ], 176 "n": 1 177 }, 178 { 179 "kind": "edge_shared_by_n_triangles", 180 "edge": [ 181 0, 182 7 183 ], 184 "n": 1 185 }, 186 { 187 "kind": "euler_characteristic", 188 "v": 8, 189 "e": 13, 190 "f": 6, 191 "chi": 1 192 } 193 ] 194 } 195}