mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Curves, if they are a swept disk solid, may belong to multiple items.
Not sure if this is the best approach. It'll probably bite me in the future.
This commit is contained in:
@@ -1852,6 +1852,8 @@ class IfcExporter():
|
||||
for mapped_item in representation.Items:
|
||||
items = mapped_item[0].MappedRepresentation.Items
|
||||
for i, item in enumerate(items):
|
||||
if i >= len(product['raw'].material_slots):
|
||||
i = 0
|
||||
material_slots[product['raw'].material_slots[i].name] = item
|
||||
for styled_item_name, representation_item in material_slots.items():
|
||||
if styled_item_name == styled_item['attributes']['Name']:
|
||||
|
||||
Reference in New Issue
Block a user