Salome HOME
Merge Python 3 porting.
[modules/smesh.git] / src / SMESH_SWIG / SMESH_fixation_netgen.py
index c8c00f67fc0da85e058463ab9655a369fb49eeae..ec532d57f7bb69714dbb6a1a422b52cc211f8792 100644 (file)
@@ -30,7 +30,7 @@ import SMESH_fixation
 
 import SMESH, SALOMEDS
 from salome.smesh import smeshBuilder
 
 import SMESH, SALOMEDS
 from salome.smesh import smeshBuilder
-smesh =  smeshBuilder.New(salome.myStudy)
+smesh =  smeshBuilder.New()
 
 compshell = SMESH_fixation.compshell
 idcomp = SMESH_fixation.idcomp
 
 compshell = SMESH_fixation.compshell
 idcomp = SMESH_fixation.idcomp
@@ -50,7 +50,7 @@ status = geompy.CheckShape(compshell)
 print(" check status ", status)
 
 ### ---------------------------- SMESH --------------------------------------
 print(" check status ", status)
 
 ### ---------------------------- SMESH --------------------------------------
-smesh.SetCurrentStudy(salome.myStudy)
+smesh.UpdateStudy()
 
 print("-------------------------- create Mesh, algorithm, hypothesis")
 
 
 print("-------------------------- create Mesh, algorithm, hypothesis")
 
@@ -76,4 +76,4 @@ if ret != 0:
 else:
     print("problem when computing the mesh")
 
 else:
     print("problem when computing the mesh")
 
-salome.sg.updateObjBrowser(True)
+salome.sg.updateObjBrowser()