mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
style.assign_representation_styles to support topology reprensentations #4038
This commit is contained in:
@@ -121,10 +121,12 @@ class Usecase:
|
||||
replace_previous_same_type_style = self.settings["replace_previous_same_type_style"]
|
||||
|
||||
for element in self.file.traverse(self.settings["shape_representation"]):
|
||||
if not element.is_a("IfcShapeRepresentation"):
|
||||
if not element.is_a("IfcShapeModel"):
|
||||
continue
|
||||
for item in element.Items:
|
||||
if not item.is_a("IfcGeometricRepresentationItem"):
|
||||
if not item.is_a("IfcGeometricRepresentationItem") and not item.is_a(
|
||||
"IfcTopologicalRepresentationItem"
|
||||
):
|
||||
continue
|
||||
if self.settings["styles"]:
|
||||
# If there are more items than styles, fallback to using the last style
|
||||
|
||||
Reference in New Issue
Block a user