mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 14:02:27 +00:00
Autodetect CSG representation types in shape builder
This commit is contained in:
@@ -751,6 +751,8 @@ class ShapeBuilder:
|
|||||||
representation_type = "AdvancedSweptSolid"
|
representation_type = "AdvancedSweptSolid"
|
||||||
elif "IfcExtrudedAreaSolid" in item_types:
|
elif "IfcExtrudedAreaSolid" in item_types:
|
||||||
representation_type = "SweptSolid"
|
representation_type = "SweptSolid"
|
||||||
|
elif "IfcCsgSolid" in item_types:
|
||||||
|
representation_type = "CSG"
|
||||||
elif items[0].is_a("IfcTessellatedItem"):
|
elif items[0].is_a("IfcTessellatedItem"):
|
||||||
representation_type = "Tessellation"
|
representation_type = "Tessellation"
|
||||||
elif items[0].is_a("IfcCurve") and items[0].Dim == 3:
|
elif items[0].is_a("IfcCurve") and items[0].Dim == 3:
|
||||||
|
|||||||
Reference in New Issue
Block a user