Arch: small fix in getShapeFromMesh

This commit is contained in:
Yorik van Havre
2013-10-27 15:45:57 -02:00
parent 2de4d5e76b
commit c27be9eb41

View File

@@ -401,9 +401,13 @@ def getShapeFromMesh(mesh):
if len(i) > 0:
wires = MeshPart.wireFromSegment(mesh, i)
if wires:
faces.append(makeFace(wires))
try:
faces.append(makeFace(wires))
except:
return None
try:
se = Part.makeShell(faces)
se = se.removeSplitter()
except:
return None
else: