mesh-examples/12-14-mesh/Me293.mesh.json
Sources
- CGAL `PMP.connected_components` Branch 4 @ line 234 (*Visited_vertex_dedup*)
- `MESH_HEAL_COVERAGE.md`.
Description
A diamond of 4 triangles (f0=top-left, f1=top-right, f2=bottom-left, f3=bottom-right) sharing central vertex v4. BFS from f0 discovers f1 and f2. Both f1 and f2 discover f3 — it is pushed to the BFS queue twice. Branch 4's `!handled[fq_id]` guard fires on the second encounter and skips re-labelling. An isolated triangle forms a second CC.
Reproducer recipe
v0=(1,2,0), v1=(0,0,0), v2=(2,0,0), v3=(1,-2,0), v4=(1,0,0). f0=(v0,v1,v4), f1=(v0,v4,v2), f2=(v1,v3,v4), f3=(v4,v3,v2). Isolated triangle at x=10.
Expected kernel behavior
f3 pushed twice to BFS queue; Branch 4 fires on second encounter and skips re-labelling.
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 -2.0, 21 0.0 22 ], 23 [ 24 1.0, 25 0.0, 26 0.0 27 ], 28 [ 29 10.0, 30 0.0, 31 0.0 32 ], 33 [ 34 11.0, 35 0.0, 36 0.0 37 ], 38 [ 39 10.5, 40 1.0, 41 0.0 42 ] 43 ], 44 "triangles": [ 45 [ 46 0, 47 1, 48 4 49 ], 50 [ 51 0, 52 4, 53 2 54 ], 55 [ 56 1, 57 3, 58 4 59 ], 60 [ 61 4, 62 3, 63 2 64 ], 65 [ 66 5, 67 6, 68 7 69 ] 70 ], 71 "metadata": { 72 "id": "Me293", 73 "schema_version": 0, 74 "defect_class": "disconnected_components", 75 "title": "connected_components visited_face_dedup_inner: diamond mesh where center face is discoverable from two BFS paths", 76 "assertions": [ 77 { 78 "kind": "edge_shared_by_n_triangles", 79 "edge": [ 80 0, 81 4 82 ], 83 "n": 2 84 }, 85 { 86 "kind": "edge_shared_by_n_triangles", 87 "edge": [ 88 1, 89 4 90 ], 91 "n": 2 92 }, 93 { 94 "kind": "edge_shared_by_n_triangles", 95 "edge": [ 96 3, 97 4 98 ], 99 "n": 2 100 }, 101 { 102 "kind": "edge_shared_by_n_triangles", 103 "edge": [ 104 2, 105 4 106 ], 107 "n": 2 108 }, 109 { 110 "kind": "triangle_not_reachable_from", 111 "target": 4, 112 "source": 0 113 } 114 ] 115 } 116}