Salome HOME
Merge multi-study removal branch.
[modules/smesh.git] / src / SMESH_SWIG / SMESH_flight_skin.py
index fa3c9743e163732a90b05c4ed130c0fdc3fb4313..122ebabfda8c21b2d566350b53955302ecf22f3d 100644 (file)
@@ -1,5 +1,5 @@
 #  -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-2015  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -29,11 +29,11 @@ import salome
 salome.salome_init()
 import GEOM
 from salome.geom import geomBuilder
-geompy = geomBuilder.New(salome.myStudy)
+geompy = geomBuilder.New()
 
 import SMESH, SALOMEDS
 from salome.smesh import smeshBuilder
-smesh =  smeshBuilder.New(salome.myStudy)
+smesh =  smeshBuilder.New()
 
 
 # ---------------------------- GEOM --------------------------------------
@@ -62,7 +62,7 @@ print "number of Edges  in flight : ", len(subEdgeList)
 
 
 ### ---------------------------- SMESH --------------------------------------
-smesh.SetCurrentStudy(salome.myStudy)
+smesh.UpdateStudy()
 
 # ---- init a Mesh with the shell
 shape_mesh = salome.IDToObject( idShape )
@@ -91,10 +91,6 @@ print hypLengthFromEdge.GetName()
 print hypLengthFromEdge.GetId()
 smesh.SetName(hypLengthFromEdge,"LengthFromEdge")
 
-
-salome.sg.updateObjBrowser(1)
-
-
 print "-------------------------- compute the skin flight"
 ret = mesh.Compute()
 print ret
@@ -110,3 +106,5 @@ if ret != 0:
     print "Number of volumes    : ", mesh.NbVolumes()
 else:
     print "probleme when computing the mesh"
+
+salome.sg.updateObjBrowser()