mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 11:24:19 +00:00
Support styles defined somewhere along a boolean result stack
This commit is contained in:
@@ -158,6 +158,14 @@ class MaterialCreator:
|
||||
for item in representation.Items:
|
||||
if item.is_a("IfcMappedItem"):
|
||||
items.extend(item.MappingSource.MappedRepresentation.Items)
|
||||
if item.is_a("IfcBooleanResult"):
|
||||
operand = item.FirstOperand
|
||||
while True:
|
||||
items.append(operand)
|
||||
if operand.is_a("IfcBooleanResult"):
|
||||
operand = operand.FirstOperand
|
||||
else:
|
||||
break
|
||||
items.append(item)
|
||||
return items
|
||||
|
||||
|
||||
Reference in New Issue
Block a user