Arch: Bugfixing and cleaning in IFC export, support of Spaces

This commit is contained in:
Yorik van Havre
2014-06-08 21:11:20 -03:00
parent 51f1098008
commit 90eba4414f
3 changed files with 20 additions and 8 deletions

View File

@@ -772,6 +772,13 @@ def getIfcBrepFacesData(obj,scale=1,sub=False,tessellation=1):
return sols
return None
def getIfcElevation(obj):
"""getIfcElevation(obj): Returns the lowest height (Z coordinate) of this object"""
if obj.isDerivedFrom("Part::Feature"):
b = obj.Shape.BoundBox
return b.ZMin
return 0
def getHost(obj,strict=True):
"""getHost(obj,[strict]): returns the host of the current object. If strict is true (default),
the host can only be an object of a higher level than the given one, or in other words, if a wall