X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FTools%2FblocFissure%2Fgmu%2FcreePointsPipePeau.py;h=b6254d1379234d085a23a724ae920217cda1b6ee;hb=09eeca0267acf6f14581efdd342e8b7a87d09cf0;hp=30836c72363afdca7c93fd8c9afffb334c66ef81;hpb=106415d543316ec2bcd80c173da165c9b8baa084;p=modules%2Fsmesh.git diff --git a/src/Tools/blocFissure/gmu/creePointsPipePeau.py b/src/Tools/blocFissure/gmu/creePointsPipePeau.py index 30836c723..b6254d137 100644 --- a/src/Tools/blocFissure/gmu/creePointsPipePeau.py +++ b/src/Tools/blocFissure/gmu/creePointsPipePeau.py @@ -1,9 +1,30 @@ # -*- 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 projettePointSurCourbe import projettePointSurCourbe +from .geomsmesh import geompy +from .geomsmesh import geomPublish +from .geomsmesh import geomPublishInFather +from . import initLog +from .projettePointSurCourbe import projettePointSurCourbe def creePointsPipePeau(listEdges, idFacesDebouchantes, idFillingFromBout, ptEdgeFond, ptFisExtPi, edCircPeau, gptsdisks, idisklim, nbsegRad): @@ -20,9 +41,9 @@ def creePointsPipePeau(listEdges, idFacesDebouchantes, idFillingFromBout, idf = -1 # si idf vaut 1, on prend le dernier élément de la liste (1 ou 2 extrémités débouchent sur la face) centre = ptEdgeFond[idFillingFromBout[i]][idf] name = "centre%d"%idf - geompy.addToStudy(centre, name) + geomPublish(initLog.debug, centre, name) vertPipePeau = ptFisExtPi[idFillingFromBout[i]][idf] - geompy.addToStudyInFather(centre, vertPipePeau, "vertPipePeau") + geomPublishInFather(initLog.debug, centre, vertPipePeau, "vertPipePeau") grpsEdgesCirc = edCircPeau[idFillingFromBout[i]] # liste de groupes edgesCirc = [] for grpEdgesCirc in grpsEdgesCirc: @@ -48,7 +69,7 @@ def creePointsPipePeau(listEdges, idFacesDebouchantes, idFillingFromBout, else: bout = geompy.MakeVertexOnCurve(distEdgeCirc[0][2], u) name ="bout%d"%k - geompy.addToStudyInFather(centre, bout, name) + geomPublishInFather(initLog.debug, centre, bout, name) # enregistrement des points dans la structure points = [] for j in range(nbsegRad +1):