Arch: small optimizations

This commit is contained in:
Yorik van Havre
2012-08-15 12:20:19 -03:00
parent 0216ff4d50
commit af79546ee1
3 changed files with 97 additions and 82 deletions

View File

@@ -222,14 +222,15 @@ class _Structure(ArchComponent.Component):
# finalizing
else:
if base:
if base.isValid() and (not base.isNull()) and base.Solids:
if base.Volume < 0:
base.reverse()
if base.Volume < 0:
FreeCAD.Console.PrintError(str(translate("Arch","Couldn't compute the wall shape")))
return
base = base.removeSplitter()
obj.Shape = base
if not base.isNull():
if base.isValid() and base.Solids:
if base.Volume < 0:
base.reverse()
if base.Volume < 0:
FreeCAD.Console.PrintError(str(translate("Arch","Couldn't compute the wall shape")))
return
base = base.removeSplitter()
obj.Shape = base
if not DraftGeomUtils.isNull(pl):
obj.Placement = pl