aName = str(theSubShape)
geompy.addToStudyInFather(theShape,theSubShape,aName)
- theMeshGen.Compute(theMesh,theShape)
+ if not theMeshGen.Compute(theMesh,theShape):
+ raise Exception("Error when computing Mesh")
aFilterMgr = theMeshGen.CreateFilterManager()
aFilter = aFilterMgr.CreateFilter()
aName = str(theSubShape)
geompy.addToStudyInFather(theShape,theSubShape,aName)
- theMesh.Compute()
+ if not theMesh.Compute():
+ raise Exception("Error when computing Mesh")
+
aFilter = smesh.GetFilter(theElemType, SMESH.FT_BelongToGeom, theSubShape)
return aFilter.GetElementsId(theMesh.GetMesh())