Cut merging now only applies to particular elements for the majority of cases. Drawing generation can be twice as fast due to this.

This commit is contained in:
Dion Moult
2023-04-30 09:24:03 +10:00
parent 29e1d70334
commit aefbc134ea
@@ -829,6 +829,10 @@ class CreateDrawing(bpy.types.Operator):
ifc = tool.Ifc.get()
for el in root.findall(".//{http://www.w3.org/2000/svg}g[@{http://www.ifcopenshell.org/ns}guid]"):
element = ifc.by_guid(el.get("{http://www.ifcopenshell.org/ns}guid"))
# Architectural convention only merges these objects. E.g. pipe segments and fittings shouldn't merge.
if not element.is_a("IfcWall") and not element.is_a("IfcSlab"):
continue
classes = self.get_svg_classes(element)
classes.append("cut")