X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH_SWIG%2FSMESH_fixation_tetra.py;h=40bf16615914244df2d7bd8f0cc1594d3fb095de;hb=ea6d39162cc87522ef869b97a6b4be8bd41776d5;hp=3e8732a53684bda196848db3c9d6c686ad5c557c;hpb=0003e6b4fcc95a0aec695ceef8371dee28baf417;p=modules%2Fsmesh.git diff --git a/src/SMESH_SWIG/SMESH_fixation_tetra.py b/src/SMESH_SWIG/SMESH_fixation_tetra.py index 3e8732a53..40bf16615 100644 --- a/src/SMESH_SWIG/SMESH_fixation_tetra.py +++ b/src/SMESH_SWIG/SMESH_fixation_tetra.py @@ -1,5 +1,5 @@ # -*- coding: iso-8859-1 -*- -# Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +# Copyright (C) 2007-2020 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 @@ -26,11 +26,11 @@ # 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()