X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH_SWIG%2FSMESH_fixation_netgen.py;h=ec532d57f7bb69714dbb6a1a422b52cc211f8792;hb=5552aec787c289730a35843d295811cfdadaacd3;hp=6731d63f5f492569204e76ca378bb7bb5c325b4d;hpb=5260bd00bd51567f6137d5ea7ae0564464c4290a;p=modules%2Fsmesh.git diff --git a/src/SMESH_SWIG/SMESH_fixation_netgen.py b/src/SMESH_SWIG/SMESH_fixation_netgen.py index 6731d63f5..ec532d57f 100644 --- a/src/SMESH_SWIG/SMESH_fixation_netgen.py +++ b/src/SMESH_SWIG/SMESH_fixation_netgen.py @@ -26,11 +26,11 @@ # 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()