mesh-examples/12-14-mesh/Me461.mesh.json
Sources
- MeshFix `Basic_TMesh.selectConnectedComponent` Branch 2 (*unvisited_triangle_check*: `if (!IS_VISITED(t))` @ line 1074)
- `MESH_HEAL_COVERAGE.md`.
Description
Four-triangle pinwheel fan around center vertex vc. Seed is t0=(v0,v1,vc). The triangle t3=(v3,v0,vc) is adjacent to both t0 (via spoke v0,vc) and t2 (via spoke v3,vc), so it is enqueued twice during BFS. When t3 is dequeued the second time IS_VISITED(t3) is true and Branch 2 skips processing. All 4 spoke edges (v0-vc, v1-vc, v2-vc, v3-vc) n=2; all 4 rim edges n=1. Euler: V=5, E=8, F=4, chi=1.
Reproducer recipe
vc=(0,0,0), v0=(0,2,0), v1=(-2,0,0), v2=(0,-2,0), v3=(2,0,0); t0=(v0,v1,vc), t1=(v1,v2,vc), t2=(v2,v3,vc), t3=(v3,v0,vc); all 4 spoke edges n=2; all 4 rim edges n=1; euler V=5,E=8,F=4,chi=1.
Expected kernel behavior
Branch 2 fires when t3 is dequeued the second time (enqueued by both t0 and t2); IS_VISITED guard returns true; inner block (enqueue neighbors + mark) is skipped.
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 0.0, 10 2.0, 11 0.0 12 ], 13 [ 14 -2.0, 15 0.0, 16 0.0 17 ], 18 [ 19 0.0, 20 -2.0, 21 0.0 22 ], 23 [ 24 2.0, 25 0.0, 26 0.0 27 ] 28 ], 29 "triangles": [ 30 [ 31 1, 32 2, 33 0 34 ], 35 [ 36 2, 37 3, 38 0 39 ], 40 [ 41 3, 42 4, 43 0 44 ], 45 [ 46 4, 47 1, 48 0 49 ] 50 ], 51 "metadata": { 52 "id": "Me461", 53 "schema_version": 0, 54 "defect_class": "disconnected_components", 55 "title": "selectConnectedComponent unvisited_triangle_check: BFS skips already-marked triangle on second dequeue", 56 "assertions": [ 57 { 58 "kind": "edge_shared_by_n_triangles", 59 "edge": [ 60 0, 61 1 62 ], 63 "n": 2 64 }, 65 { 66 "kind": "edge_shared_by_n_triangles", 67 "edge": [ 68 0, 69 2 70 ], 71 "n": 2 72 }, 73 { 74 "kind": "edge_shared_by_n_triangles", 75 "edge": [ 76 0, 77 3 78 ], 79 "n": 2 80 }, 81 { 82 "kind": "edge_shared_by_n_triangles", 83 "edge": [ 84 0, 85 4 86 ], 87 "n": 2 88 }, 89 { 90 "kind": "edge_shared_by_n_triangles", 91 "edge": [ 92 1, 93 2 94 ], 95 "n": 1 96 }, 97 { 98 "kind": "edge_shared_by_n_triangles", 99 "edge": [ 100 2, 101 3 102 ], 103 "n": 1 104 }, 105 { 106 "kind": "edge_shared_by_n_triangles", 107 "edge": [ 108 3, 109 4 110 ], 111 "n": 1 112 }, 113 { 114 "kind": "edge_shared_by_n_triangles", 115 "edge": [ 116 1, 117 4 118 ], 119 "n": 1 120 }, 121 { 122 "kind": "euler_characteristic", 123 "v": 5, 124 "e": 8, 125 "f": 4, 126 "chi": 1 127 } 128 ] 129 } 130}