mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-03 21:38:12 +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:
|
for item in representation.Items:
|
||||||
if item.is_a("IfcMappedItem"):
|
if item.is_a("IfcMappedItem"):
|
||||||
items.extend(item.MappingSource.MappedRepresentation.Items)
|
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)
|
items.append(item)
|
||||||
return items
|
return items
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user