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

Function yield_groups

src/ifcopenshell-python/ifcopenshell/draw.py:255–259  ·  view source on GitHub ↗
(n, tag="g")

Source from the content-addressed store, hash-verified

253 return svg_data_1.encode("ascii", "xmlcharrefreplace")
254
255 def yield_groups(n, tag="g"):
256 if n.nodeType == n.ELEMENT_NODE and n.tagName == tag:
257 yield n
258 for c in n.childNodes:
259 yield from yield_groups(c, tag=tag)
260
261 dom1 = parseString(svg_data_1)
262 svg1 = dom1.childNodes[0]

Callers 3

mainFunction · 0.85
yield_groupsMethod · 0.85
generate_lineworkMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected