Support styles defined somewhere along a boolean result stack

This commit is contained in:
Dion Moult
2022-11-07 11:24:02 +11:00
parent 4881e4c686
commit 521ec1b124
@@ -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