mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 18:57:17 +00:00
Support multiple swept disk solids with equal radii as a native Blender object
This commit is contained in:
@@ -400,6 +400,12 @@ class IfcImporter:
|
|||||||
items = representation["raw"].Items or [] # Be forgiving of invalid IFCs because Revit :(
|
items = representation["raw"].Items or [] # Be forgiving of invalid IFCs because Revit :(
|
||||||
if len(items) == 1 and items[0].is_a("IfcSweptDiskSolid"):
|
if len(items) == 1 and items[0].is_a("IfcSweptDiskSolid"):
|
||||||
return True
|
return True
|
||||||
|
elif (
|
||||||
|
items[0].is_a("IfcSweptDiskSolid")
|
||||||
|
and len({i.is_a() for i in items}) == 1
|
||||||
|
and len({i.Radius for i in items}) == 1
|
||||||
|
):
|
||||||
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def is_native_faceted_brep(self, representations):
|
def is_native_faceted_brep(self, representations):
|
||||||
|
|||||||
Reference in New Issue
Block a user