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

Function has_relevant_zone

src/ifcopenshell-python/ifcopenshell/draw.py:525–533  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

523 polies = [create_poly(p) for p in polies]
524
525 def has_relevant_zone(i):
526 inst = by_guid(path_objects[i].parentNode.attributes["ifc:guid"].value)
527 groups = [rel.RelatingGroup for rel in inst.HasAssignments if rel.is_a("IfcRelAssignsToGroup")]
528 if settings.zone_filter:
529 query, val = settings.zone_filter.rsplit("=", 1)
530 # cast to type encountered in pset prop
531 val = type_unsafe_value(val)
532 groups = [g for g in groups if ifcopenshell.util.selector.get_element_value(g, query) == val]
533 return len(groups) > 0
534
535 if settings.arrange_zones:
536 path_objects, section_polies, polies = zip(

Callers 1

mainFunction · 0.85

Calls 3

by_guidFunction · 0.85
type_unsafe_valueClass · 0.85
is_aMethod · 0.45

Tested by

no test coverage detected