mesh-examples/12-14-mesh/Me642.mesh.json
Sources
- MeshFix `holeFilling::fillSmallBoundaries` Branch 3 (*BOUNDARY_CROSSING_CONSTRAINT*: `if (IS_BIT(w, 6)) { grd = nbe + 1
- break
- }` @ line 542)
- `MESH_HEAL_COVERAGE.md`.
Description
A mesh where hole corner h0=(1,2,0) is adjacent to a pre-selected triangle (IS_VISITED). Branch 1's scan sets IS_BIT(h0,6). When the boundary-traversal loop visits h0, Branch 3 fires: grd is forced to nbe+1 (above the fill threshold) and the inner loop breaks, skipping this hole entirely.
Reproducer recipe
selected patch: ts0=(s0,s1,h0), ts1=(s0,h0,s2) share h0; hole frame: tf0-tf2 surround triangular hole (h0,h1,h2) with anchor a; hole edges n=1; frame-to-fill edges n=2.
Expected kernel behavior
Branch 3 fires; IS_BIT(h0,6) is true; grd set to nbe+1; boundary-traversal inner loop breaks; hole is not filled.
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 2.0, 6 0.0 7 ], 8 [ 9 0.0, 10 0.0, 11 0.0 12 ], 13 [ 14 2.0, 15 0.0, 16 0.0 17 ], 18 [ 19 1.0, 20 -1.0, 21 0.0 22 ], 23 [ 24 0.0, 25 3.0, 26 0.0 27 ], 28 [ 29 -1.0, 30 1.0, 31 0.0 32 ], 33 [ 34 2.0, 35 3.0, 36 0.0 37 ] 38 ], 39 "triangles": [ 40 [ 41 4, 42 5, 43 0 44 ], 45 [ 46 4, 47 0, 48 6 49 ], 50 [ 51 0, 52 1, 53 3 54 ], 55 [ 56 1, 57 2, 58 3 59 ], 60 [ 61 2, 62 0, 63 3 64 ] 65 ], 66 "metadata": { 67 "id": "Me642", 68 "schema_version": 0, 69 "defect_class": "boundary_hole", 70 "title": "holeFilling::fillSmallBoundaries BOUNDARY_CROSSING_CONSTRAINT: IS_BIT(h0,6) set; grd forced to nbe+1; hole traversal aborted (Branch 3)", 71 "assertions": [ 72 { 73 "kind": "hole_boundary", 74 "loop": [ 75 0, 76 1, 77 2 78 ] 79 }, 80 { 81 "kind": "edge_shared_by_n_triangles", 82 "edge": [ 83 0, 84 1 85 ], 86 "n": 1 87 }, 88 { 89 "kind": "edge_shared_by_n_triangles", 90 "edge": [ 91 1, 92 2 93 ], 94 "n": 1 95 }, 96 { 97 "kind": "edge_shared_by_n_triangles", 98 "edge": [ 99 0, 100 2 101 ], 102 "n": 1 103 }, 104 { 105 "kind": "edge_shared_by_n_triangles", 106 "edge": [ 107 0, 108 3 109 ], 110 "n": 2 111 }, 112 { 113 "kind": "edge_shared_by_n_triangles", 114 "edge": [ 115 1, 116 3 117 ], 118 "n": 2 119 }, 120 { 121 "kind": "edge_shared_by_n_triangles", 122 "edge": [ 123 2, 124 3 125 ], 126 "n": 2 127 }, 128 { 129 "kind": "edge_shared_by_n_triangles", 130 "edge": [ 131 0, 132 4 133 ], 134 "n": 2 135 } 136 ] 137 } 138}