(i)
| 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( |
no test coverage detected