Salome HOME
PAL9199. update mesh icon in Mesh.Compute()
[modules/smesh.git] / src / SMESH_SWIG / smesh.py
index 2fb7de23f19e59c0fc2f19c5dd4022d183d50514..9c0d2baf766753f39159e17804fc89aaeacdb211 100644 (file)
@@ -407,6 +407,9 @@ class Mesh:
         """
         b = smesh.Compute(self.mesh, self.geom)
         if salome.sg.hasDesktop():
+            smeshgui = salome.ImportComponentGUI("SMESH")
+            smeshgui.Init(salome.myStudyId)
+            smeshgui.SetMeshIcon( salome.ObjectToID( self.mesh ), b )
             salome.sg.updateObjBrowser(1)
         return b
 
@@ -431,6 +434,8 @@ class Mesh:
             type = SMESH.FACE
         elif tgeo == "SOLID":
             type = SMESH.VOLUME
+        elif tgeo == "SHELL":
+            type = SMESH.VOLUME
         elif tgeo == "COMPOUND":
             tgeo = geompy.GetType(grp)
             if tgeo == geompy.ShapeType["VERTEX"]: