mesh-examples/12-14-mesh/Me464.mesh.json
Sources
- MeshFix `Basic_TMesh.selectConnectedComponent` Branch 5 (*neighbor_t3_enqueue*: `if (t3 != NULL && !IS_VISITED(t3) && (!sos || !IS_SHARPEDGE(t->e3)))` @ line 1080)
- `MESH_HEAL_COVERAGE.md`.
Description
Four triangles — seed t0=(v0,v1,v2) with all three edge-neighbors present. The t3-neighbor across e3=(v1,v2) is fixture triangle t3_nbr=(v2,v1,v5). All three edges of t0 are interior (n=2); six outer boundary edges n=1. Euler: V=6, E=9, F=4, chi=1. Note: with sos=true and SHARPEDGE(e3)=true, t3_nbr would be isolated as a separate component; this fixture shows the non-blocked traversal.
Reproducer recipe
v0=(0,0,0), v1=(2,0,0), v2=(1,2,0), v3=(-1,1,0), v4=(1,-2,0), v5=(3.5,1.5,0); t0=(v0,v1,v2) [seed], t1_nbr=(v2,v0,v3) [e1-neighbor], t2_nbr=(v1,v0,v4) [e2-neighbor], t3_nbr=(v2,v1,v5) [e3-neighbor, Branch 5 target]; all three t0 edges n=2; six outer edges n=1; euler V=6,E=9,F=4,chi=1.
Expected kernel behavior
Branch 5 fires when t0 is dequeued; t3_nbr (across e3=(v1,v2)) is non-NULL, unvisited, and e3 not sharp → appended to todo. If sos=true and e3 were sharp, Branch 5 would be skipped and t3_nbr would remain unvisited.
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.0, 15 2.0, 16 0.0 17 ], 18 [ 19 -1.0, 20 1.0, 21 0.0 22 ], 23 [ 24 1.0, 25 -2.0, 26 0.0 27 ], 28 [ 29 3.5, 30 1.5, 31 0.0 32 ] 33 ], 34 "triangles": [ 35 [ 36 0, 37 1, 38 2 39 ], 40 [ 41 2, 42 0, 43 3 44 ], 45 [ 46 1, 47 0, 48 4 49 ], 50 [ 51 2, 52 1, 53 5 54 ] 55 ], 56 "metadata": { 57 "id": "Me464", 58 "schema_version": 0, 59 "defect_class": "disconnected_components", 60 "title": "selectConnectedComponent neighbor_t3_enqueue: BFS enqueues t3 across non-sharp edge e3", 61 "assertions": [ 62 { 63 "kind": "edge_shared_by_n_triangles", 64 "edge": [ 65 0, 66 2 67 ], 68 "n": 2 69 }, 70 { 71 "kind": "edge_shared_by_n_triangles", 72 "edge": [ 73 0, 74 1 75 ], 76 "n": 2 77 }, 78 { 79 "kind": "edge_shared_by_n_triangles", 80 "edge": [ 81 1, 82 2 83 ], 84 "n": 2 85 }, 86 { 87 "kind": "edge_shared_by_n_triangles", 88 "edge": [ 89 0, 90 3 91 ], 92 "n": 1 93 }, 94 { 95 "kind": "edge_shared_by_n_triangles", 96 "edge": [ 97 2, 98 3 99 ], 100 "n": 1 101 }, 102 { 103 "kind": "edge_shared_by_n_triangles", 104 "edge": [ 105 0, 106 4 107 ], 108 "n": 1 109 }, 110 { 111 "kind": "edge_shared_by_n_triangles", 112 "edge": [ 113 1, 114 4 115 ], 116 "n": 1 117 }, 118 { 119 "kind": "edge_shared_by_n_triangles", 120 "edge": [ 121 1, 122 5 123 ], 124 "n": 1 125 }, 126 { 127 "kind": "edge_shared_by_n_triangles", 128 "edge": [ 129 2, 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}