(f)
| 142 | return any(settings.storey_filter in (x.Name or x.GlobalId) for x in yield_parents(el)) |
| 143 | |
| 144 | def create_iter(f): |
| 145 | if settings.storey_filter and iterator_kwargs.get("include"): |
| 146 | iterator_kwargs["include"] = list( |
| 147 | filter(has_selected_parent, sum((f.by_type(x) for x in iterator_kwargs["include"]), [])) |
| 148 | ) |
| 149 | return ifcopenshell.geom.iterator(geom_settings, f, **iterator_kwargs) |
| 150 | |
| 151 | # We have to keep the iterator in memory because otherwise |
| 152 | # the styles are cleared up. |