X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESH_SWIG%2Fsmesh.py;h=ea7c6d1312ad3c4cccdbd31ffa33b2ca28efd3b1;hp=2fb7de23f19e59c0fc2f19c5dd4022d183d50514;hb=c87dcc36c2504ee743ce84618e66952673b96d90;hpb=5ec1fbd25024b6bcdee300c70fec4ecb804a05d7 diff --git a/src/SMESH_SWIG/smesh.py b/src/SMESH_SWIG/smesh.py index 2fb7de23f..ea7c6d131 100644 --- a/src/SMESH_SWIG/smesh.py +++ b/src/SMESH_SWIG/smesh.py @@ -156,6 +156,7 @@ class Mesh_Segment(Mesh_Algorithm): hyp = self.Hypothesis("NumberOfSegments", [n]) else: hyp = self.Hypothesis("NumberOfSegments", [n,s]) + hyp.SetDistrType( 1 ) hyp.SetScaleFactor(s) hyp.SetNumberOfSegments(n) return hyp @@ -407,6 +408,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 +435,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"]: