Me690 — connected_component loop_control: 5-triangle zigzag strip forces BFS while-loop to cycle 5 times

§12.14 mesh defects (sub-class: disconnected_components / connected-component-BFS)

topology

Sources

Description

A zigzag strip of 5 triangles (t0-t4) where each adjacent pair shares one interior edge. BFS seeded at t0 must iterate 5 times through the `while (!face_queue.empty())` loop before the queue drains. An isolated triangle (t5) forms a second CC. Interior edges: (b1,p0) shared by t0+t1, (b1,p1) by t1+t2, (b2,p1) by t2+t3, (b2,p2) by t3+t4.

Reproducer recipe

b0=(0,0,0), b1=(1,0,0), b2=(2,0,0), b3=(3,0,0); p0=(0.5,1,0), p1=(1.5,1,0), p2=(2.5,1,0). t0=(b0,b1,p0); t1=(b1,p1,p0); t2=(b1,b2,p1); t3=(b2,p2,p1); t4=(b2,b3,p2). iso=(q0,q1,q2) at x=20.

Expected kernel behavior

BFS while-loop runs 5 iterations for the strip component; outer BFS seeds iso as a second CC.

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      1.0,
10      0.0,
11      0.0
12    ],
13    [
14      2.0,
15      0.0,
16      0.0
17    ],
18    [
19      3.0,
20      0.0,
21      0.0
22    ],
23    [
24      0.5,
25      1.0,
26      0.0
27    ],
28    [
29      1.5,
30      1.0,
31      0.0
32    ],
33    [
34      2.5,
35      1.0,
36      0.0
37    ],
38    [
39      20.0,
40      0.0,
41      0.0
42    ],
43    [
44      21.0,
45      0.0,
46      0.0
47    ],
48    [
49      20.5,
50      1.0,
51      0.0
52    ]
53  ],
54  "triangles": [
55    [
56      0,
57      1,
58      4
59    ],
60    [
61      1,
62      5,
63      4
64    ],
65    [
66      1,
67      2,
68      5
69    ],
70    [
71      2,
72      6,
73      5
74    ],
75    [
76      2,
77      3,
78      6
79    ],
80    [
81      7,
82      8,
83      9
84    ]
85  ],
86  "metadata": {
87    "id": "Me690",
88    "schema_version": 0,
89    "defect_class": "disconnected_components",
90    "title": "connected_component loop_control: 5-triangle zigzag strip forces BFS while-loop to cycle 5 times",
91    "assertions": [
92      {
93        "kind": "edge_shared_by_n_triangles",
94        "edge": [
95          1,
96          4
97        ],
98        "n": 2
99      },
100      {
101        "kind": "edge_shared_by_n_triangles",
102        "edge": [
103          1,
104          5
105        ],
106        "n": 2
107      },
108      {
109        "kind": "edge_shared_by_n_triangles",
110        "edge": [
111          2,
112          5
113        ],
114        "n": 2
115      },
116      {
117        "kind": "edge_shared_by_n_triangles",
118        "edge": [
119          2,
120          6
121        ],
122        "n": 2
123      },
124      {
125        "kind": "triangle_not_reachable_from",
126        "target": 5,
127        "source": 0
128      }
129    ]
130  }
131}