mesh-examples/12-14-mesh/Me257.mesh.json
Sources
- MeshFix `Basic_TMesh.openToDisk` Branch 8 (*non_boundary_edge_dup*: `!IS_BIT(e,3) && !e->isOnBoundary()`)
- `MESH_HEAL_COVERAGE.md`.
Description
A 3×3 toroidal grid (9 vertices, 18 triangles, 27 edges, chi=0). The torus has no boundary and one handle (genus 1). openToDisk must duplicate interior edges not in the spanning tree — one for each handle — to topologically cut the surface to a disk. All edges are interior (n=2); Branch 8 fires when each such cut edge is found and duplicated via newEdge.
Reproducer recipe
9-vertex flat grid with wrap-around identification in both axes; 18 triangles (2 per square); all edges shared by exactly 2 triangles; V-E+F=9-27+18=0.
Expected kernel behavior
openToDisk finds 2 interior non-spanning-tree edges; duplicates each (Branch 8 fires twice) to reduce genus by 1 per cut.
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 1.0, 10 0.0, 11 0.0 12 ], 13 [ 14 2.0, 15 0.0, 16 0.0 17 ], 18 [ 19 0.0, 20 1.0, 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 0.0, 35 2.0, 36 0.0 37 ], 38 [ 39 1.0, 40 2.0, 41 0.0 42 ], 43 [ 44 2.0, 45 2.0, 46 0.0 47 ] 48 ], 49 "triangles": [ 50 [ 51 0, 52 1, 53 3 54 ], 55 [ 56 1, 57 4, 58 3 59 ], 60 [ 61 1, 62 2, 63 4 64 ], 65 [ 66 2, 67 5, 68 4 69 ], 70 [ 71 2, 72 0, 73 5 74 ], 75 [ 76 0, 77 3, 78 5 79 ], 80 [ 81 3, 82 4, 83 6 84 ], 85 [ 86 4, 87 7, 88 6 89 ], 90 [ 91 4, 92 5, 93 7 94 ], 95 [ 96 5, 97 8, 98 7 99 ], 100 [ 101 5, 102 3, 103 8 104 ], 105 [ 106 3, 107 6, 108 8 109 ], 110 [ 111 6, 112 7, 113 0 114 ], 115 [ 116 7, 117 1, 118 0 119 ], 120 [ 121 7, 122 8, 123 1 124 ], 125 [ 126 8, 127 2, 128 1 129 ], 130 [ 131 8, 132 6, 133 2 134 ], 135 [ 136 6, 137 0, 138 2 139 ] 140 ], 141 "metadata": { 142 "id": "Me257", 143 "schema_version": 0, 144 "defect_class": "open_to_disk_edge_dup", 145 "title": "openToDisk_non_boundary_edge_dup: torus (chi=0) \u2014 interior edges must be duplicated to open to disk", 146 "assertions": [ 147 { 148 "kind": "edge_shared_by_n_triangles", 149 "edge": [ 150 0, 151 1 152 ], 153 "n": 2 154 }, 155 { 156 "kind": "edge_shared_by_n_triangles", 157 "edge": [ 158 1, 159 2 160 ], 161 "n": 2 162 }, 163 { 164 "kind": "edge_shared_by_n_triangles", 165 "edge": [ 166 0, 167 2 168 ], 169 "n": 2 170 }, 171 { 172 "kind": "edge_shared_by_n_triangles", 173 "edge": [ 174 0, 175 3 176 ], 177 "n": 2 178 }, 179 { 180 "kind": "edge_shared_by_n_triangles", 181 "edge": [ 182 3, 183 6 184 ], 185 "n": 2 186 }, 187 { 188 "kind": "edge_shared_by_n_triangles", 189 "edge": [ 190 0, 191 6 192 ], 193 "n": 2 194 }, 195 { 196 "kind": "edge_shared_by_n_triangles", 197 "edge": [ 198 1, 199 3 200 ], 201 "n": 2 202 }, 203 { 204 "kind": "edge_shared_by_n_triangles", 205 "edge": [ 206 2, 207 4 208 ], 209 "n": 2 210 }, 211 { 212 "kind": "edge_shared_by_n_triangles", 213 "edge": [ 214 0, 215 5 216 ], 217 "n": 2 218 }, 219 { 220 "kind": "euler_characteristic", 221 "v": 9, 222 "e": 27, 223 "f": 18, 224 "chi": 0 225 } 226 ] 227 } 228}