Arch: allow exporting of objects with no solid or shell to IFC

This commit is contained in:
Yorik van Havre
2020-09-22 13:31:04 +02:00
parent 621e1d603b
commit 35d5c5dc4c

View File

@@ -2093,10 +2093,12 @@ def getRepresentation(ifcfile,context,obj,forcebrep=False,subtraction=False,tess
if fcshape.Solids:
dataset = fcshape.Solids
else:
elif fcshape.Shells:
dataset = fcshape.Shells
#if preferences['DEBUG']: print("Warning! object contains no solids")
else:
if preferences['DEBUG']: print("Warning! object "+obj.Label+" contains no solids or shells")
dataset = [fcshape]
for fcsolid in dataset:
fcsolid.scale(preferences['SCALE_FACTOR']) # to meters
faces = []