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

Function classes

src/ifcopenshell-python/ifcopenshell/draw.py:626–632  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

624 g = dom1.createElement("g")
625
626 def classes():
627 yield zone.is_a()
628 for propname, propval in reduce(
629 operator.or_, ifcopenshell.util.element.get_psets(zone).values()
630 ).items():
631 if propval is True:
632 yield propname
633
634 g.setAttribute("class", " ".join(classes()))
635 for p in poly:

Callers 1

mainFunction · 0.85

Calls 3

valuesMethod · 0.80
is_aMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected