X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESH_SWIG%2FSMESH_fixation_netgen.py;h=0da15f6db56eea46374ea0c03cb369829a929a2b;hp=c8c00f67fc0da85e058463ab9655a369fb49eeae;hb=d9f4b53e489dd5857db264ede6acded7b076c9f1;hpb=5637345b9ae64ee1fcfb56f6a0dec6abe9ca7046 diff --git a/src/SMESH_SWIG/SMESH_fixation_netgen.py b/src/SMESH_SWIG/SMESH_fixation_netgen.py index c8c00f67f..0da15f6db 100644 --- a/src/SMESH_SWIG/SMESH_fixation_netgen.py +++ b/src/SMESH_SWIG/SMESH_fixation_netgen.py @@ -1,5 +1,5 @@ # -*- coding: iso-8859-1 -*- -# Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +# Copyright (C) 2007-2022 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 @@ -30,7 +30,7 @@ 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()