Salome HOME
Merge remote branch 'origin/V8_5_asterstudy'
[modules/smesh.git] / src / SMESH_SWIG / SMESH_fixation_tetra.py
index 3e8732a53684bda196848db3c9d6c686ad5c557c..e760a8348c78349595deadb751cb4b353850bf0d 100644 (file)
 # Hypothesis and algorithms for the mesh generation are global
 #
 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()
 
 # ---- init a Mesh with the compshell
 
@@ -110,8 +110,8 @@ ret = mesh.Compute(mesh)
 print(ret)
 if ret != 0:
     log = mesh.GetLog(0) # no erase trace
-    for linelog in log:
-        print(linelog)
+    for linelog in log:
+        print(linelog)
     print("Information about the MeshcompShel:")
     print("Number of nodes        : ", mesh.NbNodes())
     print("Number of edges        : ", mesh.NbEdges())
@@ -123,4 +123,4 @@ if ret != 0:
 else:
     print("problem when computing the mesh")
 
-salome.sg.updateObjBrowser(True)
+salome.sg.updateObjBrowser()