mesh-examples/12-14-mesh/Me256.mesh.json
Sources
- MeshFix `Basic_TMesh.openToDisk` Branch 7 (*vertex_cycle_closure*: `UNMARK_BIT` + re-append)
- `MESH_HEAL_COVERAGE.md`.
Description
A triangulated annulus (6 triangles) with two boundary loops: inner triangular hole (i0,i1,i2) and outer triangular rim (o0,o1,o2). Branch 7 fires when the spanning tree traversal exhausts all pending boundary edges at a vertex. It fires once when the inner cycle closes and again when the outer cycle closes. The algorithm unmarks two edges and re-queues the vertex to handle the second loop.
Reproducer recipe
i0=(0,0,0), i1=(1,0,0), i2=(0.5,0.87,0), o0=(-0.5,-0.87,0), o1=(1.5,-0.87,0), o2=(0.5,1.73,0); 6 annulus triangles via 3 strip pairs (bottom/right/left sides).
Expected kernel behavior
Branch 7 fires on inner cycle closure; then outer cycle traversal begins via Branch 6; Branch 7 fires again on outer cycle closure.
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 0.5, 15 0.87, 16 0.0 17 ], 18 [ 19 -0.5, 20 -0.87, 21 0.0 22 ], 23 [ 24 1.5, 25 -0.87, 26 0.0 27 ], 28 [ 29 0.5, 30 1.73, 31 0.0 32 ] 33 ], 34 "triangles": [ 35 [ 36 3, 37 0, 38 1 39 ], 40 [ 41 3, 42 1, 43 4 44 ], 45 [ 46 4, 47 1, 48 2 49 ], 50 [ 51 4, 52 2, 53 5 54 ], 55 [ 56 5, 57 2, 58 0 59 ], 60 [ 61 5, 62 0, 63 3 64 ] 65 ], 66 "metadata": { 67 "id": "Me256", 68 "schema_version": 0, 69 "defect_class": "open_to_disk_cycle_closure", 70 "title": "openToDisk_vertex_cycle_closure: two boundary loops \u2014 cycle-close Branch 7 fires twice", 71 "assertions": [ 72 { 73 "kind": "edge_shared_by_n_triangles", 74 "edge": [ 75 0, 76 1 77 ], 78 "n": 1 79 }, 80 { 81 "kind": "edge_shared_by_n_triangles", 82 "edge": [ 83 1, 84 2 85 ], 86 "n": 1 87 }, 88 { 89 "kind": "edge_shared_by_n_triangles", 90 "edge": [ 91 0, 92 2 93 ], 94 "n": 1 95 }, 96 { 97 "kind": "edge_shared_by_n_triangles", 98 "edge": [ 99 3, 100 4 101 ], 102 "n": 1 103 }, 104 { 105 "kind": "edge_shared_by_n_triangles", 106 "edge": [ 107 4, 108 5 109 ], 110 "n": 1 111 }, 112 { 113 "kind": "edge_shared_by_n_triangles", 114 "edge": [ 115 3, 116 5 117 ], 118 "n": 1 119 }, 120 { 121 "kind": "edge_shared_by_n_triangles", 122 "edge": [ 123 0, 124 3 125 ], 126 "n": 2 127 }, 128 { 129 "kind": "edge_shared_by_n_triangles", 130 "edge": [ 131 1, 132 3 133 ], 134 "n": 2 135 }, 136 { 137 "kind": "edge_shared_by_n_triangles", 138 "edge": [ 139 1, 140 4 141 ], 142 "n": 2 143 }, 144 { 145 "kind": "edge_shared_by_n_triangles", 146 "edge": [ 147 2, 148 4 149 ], 150 "n": 2 151 }, 152 { 153 "kind": "edge_shared_by_n_triangles", 154 "edge": [ 155 2, 156 5 157 ], 158 "n": 2 159 }, 160 { 161 "kind": "edge_shared_by_n_triangles", 162 "edge": [ 163 0, 164 5 165 ], 166 "n": 2 167 }, 168 { 169 "kind": "hole_boundary", 170 "loop": [ 171 0, 172 1, 173 2 174 ] 175 }, 176 { 177 "kind": "hole_boundary", 178 "loop": [ 179 3, 180 5, 181 4 182 ] 183 } 184 ] 185 } 186}