Salome HOME
Merge remote branch 'origin/V8_5_asterstudy'
[modules/smesh.git] / src / SMESH_SWIG / SMESH_fixation_netgen.py
index 6731d63f5f492569204e76ca378bb7bb5c325b4d..ec532d57f7bb69714dbb6a1a422b52cc211f8792 100644 (file)
 # The new Netgen algorithm is used that discretizes baoundaries itself
 #
 import salome
-from . import SMESH_fixation
+import SMESH_fixation
 
 import SMESH, SALOMEDS
 from salome.smesh import smeshBuilder
-smesh =  smeshBuilder.New(salome.myStudy)
+smesh =  smeshBuilder.New()
 
 compshell = SMESH_fixation.compshell
 idcomp = SMESH_fixation.idcomp
@@ -50,7 +50,7 @@ status = geompy.CheckShape(compshell)
 print(" check status ", status)
 
 ### ---------------------------- SMESH --------------------------------------
-smesh.SetCurrentStudy(salome.myStudy)
+smesh.UpdateStudy()
 
 print("-------------------------- create Mesh, algorithm, hypothesis")
 
@@ -76,4 +76,4 @@ if ret != 0:
 else:
     print("problem when computing the mesh")
 
-salome.sg.updateObjBrowser(True)
+salome.sg.updateObjBrowser()