mesh-examples/12-14-mesh/Me641.mesh.json
Sources
- MeshFix `holeFilling::fillSmallBoundaries` Branch 2 (*VERTEX_ON_BOUNDARY*: `if (v->isOnBoundary()) { ... }` increments boundary-edge count grd @ line 536)
- `MESH_HEAL_COVERAGE.md`.
Description
A 5-triangle open mesh with a triangular hole at (v3,v4,v5). When fillSmallBoundaries traverses the hole boundary loop, it calls v->isOnBoundary() on each vertex; v3 is on the mesh boundary so Branch 2 fires and the boundary-edge count grd is incremented for that vertex.
Reproducer recipe
v0-v2 bottom row; v3-v4 middle; v5 top (hole apex); 5 triangles; hole at (v3,v4,v5) with all three edges n=1; outer boundary edges n=1.
Expected kernel behavior
Branch 2 fires; v3 isOnBoundary() returns true; grd incremented; hole boundary traversal continues.
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 2.0, 10 0.0, 11 0.0 12 ], 13 [ 14 4.0, 15 0.0, 16 0.0 17 ], 18 [ 19 1.0, 20 2.0, 21 0.0 22 ], 23 [ 24 3.0, 25 2.0, 26 0.0 27 ], 28 [ 29 2.0, 30 4.0, 31 0.0 32 ] 33 ], 34 "triangles": [ 35 [ 36 0, 37 1, 38 3 39 ], 40 [ 41 1, 42 2, 43 4 44 ], 45 [ 46 1, 47 3, 48 4 49 ], 50 [ 51 2, 52 4, 53 5 54 ], 55 [ 56 0, 57 2, 58 1 59 ] 60 ], 61 "metadata": { 62 "id": "Me641", 63 "schema_version": 0, 64 "defect_class": "boundary_hole", 65 "title": "holeFilling::fillSmallBoundaries VERTEX_ON_BOUNDARY: v->isOnBoundary() true for v3 on hole boundary; grd incremented (Branch 2)", 66 "assertions": [ 67 { 68 "kind": "hole_boundary", 69 "loop": [ 70 3, 71 4, 72 5 73 ] 74 }, 75 { 76 "kind": "edge_shared_by_n_triangles", 77 "edge": [ 78 3, 79 4 80 ], 81 "n": 1 82 }, 83 { 84 "kind": "edge_shared_by_n_triangles", 85 "edge": [ 86 4, 87 5 88 ], 89 "n": 1 90 }, 91 { 92 "kind": "edge_shared_by_n_triangles", 93 "edge": [ 94 0, 95 3 96 ], 97 "n": 1 98 }, 99 { 100 "kind": "edge_shared_by_n_triangles", 101 "edge": [ 102 0, 103 2 104 ], 105 "n": 1 106 }, 107 { 108 "kind": "edge_shared_by_n_triangles", 109 "edge": [ 110 2, 111 5 112 ], 113 "n": 1 114 }, 115 { 116 "kind": "edge_shared_by_n_triangles", 117 "edge": [ 118 0, 119 1 120 ], 121 "n": 2 122 }, 123 { 124 "kind": "edge_shared_by_n_triangles", 125 "edge": [ 126 1, 127 2 128 ], 129 "n": 2 130 }, 131 { 132 "kind": "edge_shared_by_n_triangles", 133 "edge": [ 134 1, 135 3 136 ], 137 "n": 2 138 }, 139 { 140 "kind": "edge_shared_by_n_triangles", 141 "edge": [ 142 1, 143 4 144 ], 145 "n": 2 146 }, 147 { 148 "kind": "edge_shared_by_n_triangles", 149 "edge": [ 150 2, 151 4 152 ], 153 "n": 2 154 } 155 ] 156 } 157}