in Compute(), protect from exceptions while searching subshape name

This commit is contained in:
eap 2010-04-30 08:21:21 +00:00
parent cbf08eab3a
commit 80d4e38b71

View File

@ -1208,17 +1208,14 @@ class Mesh:
if len(ids) == 1 and ids[0] == err.subShapeID:
shapeText = '"%s"' % subSO.GetName()
break
pass
pass
pass
except: pass
if not shapeText:
shape = self.geompyD.GetSubShape( geom, [err.subShapeID])
if shape:
shapeText = "%s #%s" % (shape.GetShapeType(), err.subShapeID)
else:
shapeText = "%subshape #%s" % (err.subShapeID)
pass
if not shapeText:
shape = self.geompyD.GetSubShape( geom, [err.subShapeID])
if shape:
shapeText = "%s #%s" % (shape.GetShapeType(), err.subShapeID)
else:
shapeText = "%subshape #%s" % (err.subShapeID)
except:
shapeText = "%subshape #%s" % (err.subShapeID)
errText = ""
stdErrors = ["OK", #COMPERR_OK
"Invalid input mesh", #COMPERR_BAD_INPUT_MESH