Me297 — connected_components visited_face_dedup_cross_halfedge: hub-and-spoke mesh — BFS skips already-handled opposite faces

§12.14 mesh defects (sub-class: disconnected_components / connected-components-labelling)

topology

Sources

Description

A hub-and-spoke mesh: center triangle t0 adjacent to 3 rim triangles (t1-t3), each with one outer triangle (t4-t6). BFS from t0 pushes t1, t2, t3. When BFS processes t1, one halfedge leads back to t0 (already handled) — Branch 8's `!handled[get(fimap,fqo)]` guard fires and skips re-queuing. An isolated triangle (t7) forms a second CC.

Reproducer recipe

c0=(0,0,0), c1=(2,0,0), c2=(1,2,0); r0=(1,-2,0), r1=(3.5,1,0), r2=(-1.5,1,0); o0=(0,-3.5,0), o1=(4.5,-1,0), o2=(-3,2,0). t0=(c0,c1,c2); t1=(c0,r0,c1); t2=(c1,r1,c2); t3=(c2,r2,c0); t4=(c0,o0,r0); t5=(c1,r1,o1); t6=(c2,o2,r2). Isolated t7 at x=20.

Expected kernel behavior

rim triangles' back-halfedges to hub trigger Branch 8; already-handled hub face is skipped without re-queuing.

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      -2.0,
21      0.0
22    ],
23    [
24      3.5,
25      1.0,
26      0.0
27    ],
28    [
29      -1.5,
30      1.0,
31      0.0
32    ],
33    [
34      0.0,
35      -3.5,
36      0.0
37    ],
38    [
39      4.5,
40      -1.0,
41      0.0
42    ],
43    [
44      -3.0,
45      2.0,
46      0.0
47    ],
48    [
49      20.0,
50      0.0,
51      0.0
52    ],
53    [
54      21.0,
55      0.0,
56      0.0
57    ],
58    [
59      20.5,
60      1.0,
61      0.0
62    ]
63  ],
64  "triangles": [
65    [
66      0,
67      1,
68      2
69    ],
70    [
71      0,
72      3,
73      1
74    ],
75    [
76      1,
77      4,
78      2
79    ],
80    [
81      2,
82      5,
83      0
84    ],
85    [
86      0,
87      6,
88      3
89    ],
90    [
91      1,
92      4,
93      7
94    ],
95    [
96      2,
97      8,
98      5
99    ],
100    [
101      9,
102      10,
103      11
104    ]
105  ],
106  "metadata": {
107    "id": "Me297",
108    "schema_version": 0,
109    "defect_class": "disconnected_components",
110    "title": "connected_components visited_face_dedup_cross_halfedge: hub-and-spoke mesh \u2014 BFS skips already-handled opposite faces",
111    "assertions": [
112      {
113        "kind": "edge_shared_by_n_triangles",
114        "edge": [
115          0,
116          1
117        ],
118        "n": 2
119      },
120      {
121        "kind": "edge_shared_by_n_triangles",
122        "edge": [
123          1,
124          2
125        ],
126        "n": 2
127      },
128      {
129        "kind": "edge_shared_by_n_triangles",
130        "edge": [
131          0,
132          2
133        ],
134        "n": 2
135      },
136      {
137        "kind": "edge_shared_by_n_triangles",
138        "edge": [
139          0,
140          3
141        ],
142        "n": 2
143      },
144      {
145        "kind": "edge_shared_by_n_triangles",
146        "edge": [
147          1,
148          4
149        ],
150        "n": 2
151      },
152      {
153        "kind": "edge_shared_by_n_triangles",
154        "edge": [
155          2,
156          5
157        ],
158        "n": 2
159      },
160      {
161        "kind": "triangle_not_reachable_from",
162        "target": 7,
163        "source": 0
164      }
165    ]
166  }
167}