MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / create_iter

Function create_iter

src/ifcopenshell-python/ifcopenshell/draw.py:144–149  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 4

filterFunction · 0.50
getMethod · 0.45
by_typeMethod · 0.45
iteratorMethod · 0.45

Tested by

no test coverage detected