Arch: small fix in getShapeFromMesh

This commit is contained in:
Yorik van Havre 2013-10-27 15:45:57 -02:00
parent 4d19a79ca3
commit 7f3430857a

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: