From 95bfb5c6a128b7e39d59fcda82b7e01a7f2c1510 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Thu, 4 Apr 2024 18:28:19 +1100 Subject: [PATCH] Autodetect CSG representation types in shape builder --- src/ifcopenshell-python/ifcopenshell/util/shape_builder.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ifcopenshell-python/ifcopenshell/util/shape_builder.py b/src/ifcopenshell-python/ifcopenshell/util/shape_builder.py index 1e2d395ba2..dd1104c780 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/shape_builder.py +++ b/src/ifcopenshell-python/ifcopenshell/util/shape_builder.py @@ -751,6 +751,8 @@ class ShapeBuilder: representation_type = "AdvancedSweptSolid" elif "IfcExtrudedAreaSolid" in item_types: representation_type = "SweptSolid" + elif "IfcCsgSolid" in item_types: + representation_type = "CSG" elif items[0].is_a("IfcTessellatedItem"): representation_type = "Tessellation" elif items[0].is_a("IfcCurve") and items[0].Dim == 3: