material.assign_material - support batching #4474

This commit is contained in:
Andrej730
2024-04-12 11:21:35 +05:00
parent 32d2f1d629
commit 59cc9c0a16
43 changed files with 432 additions and 236 deletions
@@ -82,7 +82,7 @@ class Usecase:
# Assign our concrete material to our wall
ifcopenshell.api.run("material.assign_material", model,
product=wall, type="IfcMaterial", material=concrete)
products=[wall], type="IfcMaterial", material=concrete)
# Create a new surface style
style = ifcopenshell.api.run("style.add_style", model)