mesh-examples/12-14-mesh/Me581.mesh.json
Sources
- MeshFix `Basic_TMesh.createSubMeshFromSelection` Branch 2 (*seed_provided*: `if (t0 != NULL && IS_VISITED(t0)) { triList.appendHead(t0)
- … BFS … }`) @ line 801
- `MESH_HEAL_COVERAGE.md`.
Description
Four fan triangles around hub v0, with outer rim vertices v1-v5. Only t1, t2, t3 are IS_VISITED (the selection); t0 is unvisited. The caller provides t1 as the seed; since t1 is non-NULL and IS_VISITED, Branch 2 fires. BFS propagates through shared spoke edges (v0,v3) and (v0,v4) to collect t2 and t3. The selection-boundary edge (v0,v2) connects unvisited t0 to visited t1, producing a NULL adjacency in the sub-mesh at that edge. Spoke edges (v0,v2),(v0,v3),(v0,v4) n=2; boundary spokes (v0,v1),(v0,v5) n=1; all rim edges n=1. Euler: V=6, E=9, F=4, chi=1.
Reproducer recipe
v0=(0,0,0), v1=(2,0,0), v2=(1.5,1.5,0), v3=(0,2,0), v4=(-1.5,1.5,0), v5=(-2,0,0); t0=(v0,v1,v2), t1=(v0,v2,v3), t2=(v0,v3,v4), t3=(v0,v4,v5); spoke edges n=2 (except v0,v1 and v0,v5 n=1); rim edges n=1; euler V=6,E=9,F=4,chi=1.
Expected kernel behavior
Branch 2 fires; BFS from t1 via (v0,v3) reaches t2, then via (v0,v4) reaches t3; t0 is unreachable (IS_VISITED=false blocks BFS across (v0,v2)); sub-mesh contains exactly {t1,t2,t3}.
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 1.5, 15 1.5, 16 0.0 17 ], 18 [ 19 0.0, 20 2.0, 21 0.0 22 ], 23 [ 24 -1.5, 25 1.5, 26 0.0 27 ], 28 [ 29 -2.0, 30 0.0, 31 0.0 32 ] 33 ], 34 "triangles": [ 35 [ 36 0, 37 1, 38 2 39 ], 40 [ 41 0, 42 2, 43 3 44 ], 45 [ 46 0, 47 3, 48 4 49 ], 50 [ 51 0, 52 4, 53 5 54 ] 55 ], 56 "metadata": { 57 "id": "Me581", 58 "schema_version": 0, 59 "defect_class": "mesh_selection", 60 "title": "createSubMeshFromSelection seed_provided: BFS from visited seed t1 collects contiguous visited region {t1,t2,t3}; unvisited t0 stops flood fill (Branch 2)", 61 "assertions": [ 62 { 63 "kind": "edge_shared_by_n_triangles", 64 "edge": [ 65 0, 66 1 67 ], 68 "n": 1 69 }, 70 { 71 "kind": "edge_shared_by_n_triangles", 72 "edge": [ 73 0, 74 2 75 ], 76 "n": 2 77 }, 78 { 79 "kind": "edge_shared_by_n_triangles", 80 "edge": [ 81 0, 82 3 83 ], 84 "n": 2 85 }, 86 { 87 "kind": "edge_shared_by_n_triangles", 88 "edge": [ 89 0, 90 4 91 ], 92 "n": 2 93 }, 94 { 95 "kind": "edge_shared_by_n_triangles", 96 "edge": [ 97 0, 98 5 99 ], 100 "n": 1 101 }, 102 { 103 "kind": "edge_shared_by_n_triangles", 104 "edge": [ 105 1, 106 2 107 ], 108 "n": 1 109 }, 110 { 111 "kind": "edge_shared_by_n_triangles", 112 "edge": [ 113 2, 114 3 115 ], 116 "n": 1 117 }, 118 { 119 "kind": "edge_shared_by_n_triangles", 120 "edge": [ 121 3, 122 4 123 ], 124 "n": 1 125 }, 126 { 127 "kind": "edge_shared_by_n_triangles", 128 "edge": [ 129 4, 130 5 131 ], 132 "n": 1 133 }, 134 { 135 "kind": "euler_characteristic", 136 "v": 6, 137 "e": 9, 138 "f": 4, 139 "chi": 1 140 } 141 ] 142 } 143}