Salome HOME
Fix test SALOME_TESTS/Grids/smesh/2D_mesh_QuadranglePreference_01/B6
[modules/smesh.git] / src / SMESH_SWIG / smeshBuilder.py
index 1baa0400d148a19a8f5678a64fa5febae0f95314..f56f9551c823039637838cf3e40964f484dda164 100644 (file)
@@ -1504,6 +1504,12 @@ class Mesh:
             pass
         return ok
 
+    ## Return a list of error messages (SMESH.ComputeError) of the last Compute()
+    def GetComputeErrors(self, shape=0 ):
+        if shape == 0:
+            shape = self.mesh.GetShapeToMesh()
+        return self.smeshpyD.GetComputeErrors( self.mesh, shape )
+
     ## Return a name of a sub-shape by its ID
     #  @param subShapeID a unique ID of a sub-shape
     #  @return a string describing the sub-shape; possible variants: