X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FTools%2FblocFissure%2Fgmu%2FsortGeneratrices.py;h=579151700cd82faedd9ed3a02dd2763579d1a076;hb=c905727828a33af44c02dce80987b3ba57ab3300;hp=956a8bcb895d2115d311d2c9f8740964e2a04722;hpb=072a73120b6db7bba2389aa7ada0cde20e22ee57;p=modules%2Fsmesh.git diff --git a/src/Tools/blocFissure/gmu/sortGeneratrices.py b/src/Tools/blocFissure/gmu/sortGeneratrices.py index 956a8bcb8..579151700 100644 --- a/src/Tools/blocFissure/gmu/sortGeneratrices.py +++ b/src/Tools/blocFissure/gmu/sortGeneratrices.py @@ -1,7 +1,28 @@ # -*- coding: utf-8 -*- +# Copyright (C) 2014-2020 EDF R&D +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# import logging -from geomsmesh import geompy +from .geomsmesh import geompy +from .geomsmesh import geomPublish +from .geomsmesh import geomPublishInFather +from . import initLog # ----------------------------------------------------------------------------- # --- tri par longueur des 3 generatrices @@ -36,8 +57,8 @@ def sortGeneratrices(tore, geners): gencnt= genx[i] pass - geompy.addToStudyInFather( tore, genext, 'genext' ) - geompy.addToStudyInFather( tore, genint, 'genint' ) - geompy.addToStudyInFather( tore, gencnt, 'gencnt' ) + geomPublishInFather(initLog.debug, tore, genext, 'genext' ) + geomPublishInFather(initLog.debug, tore, genint, 'genint' ) + geomPublishInFather(initLog.debug, tore, gencnt, 'gencnt' ) return genext, genint, gencnt