X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FTools%2FblocFissure%2Fgmu%2FfacesVolumesToriques.py;h=4186cc34e1a3a66fefb14f4b9d2cd00011fe22fe;hb=42c23b637c033e8695a798b13360df7602e79426;hp=2ad4dc6e7c79805609d904b6078d016319e467ba;hpb=5d68554076bbca0e1e95fb0db215a6c2b84b6c54;p=modules%2Fsmesh.git diff --git a/src/Tools/blocFissure/gmu/facesVolumesToriques.py b/src/Tools/blocFissure/gmu/facesVolumesToriques.py index 2ad4dc6e7..4186cc34e 100644 --- a/src/Tools/blocFissure/gmu/facesVolumesToriques.py +++ b/src/Tools/blocFissure/gmu/facesVolumesToriques.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 extractionOrientee import extractionOrientee -from getSubshapeIds import getSubshapeIds +from .geomsmesh import geompy +from .geomsmesh import geomPublish +from .geomsmesh import geomPublishInFather +from . import initLog +from .extractionOrientee import extractionOrientee +from .getSubshapeIds import getSubshapeIds # ----------------------------------------------------------------------------- # --- TORE @@ -43,11 +64,11 @@ def facesVolumesToriques(tore, plan, facesDefaut): #[facetore1,facetore2] = geompy.GetShapesOnShape(pipe0, tore, geompy.ShapeType["FACE"], GEOM.ST_ON) - geompy.addToStudyInFather( tore, facetore1, 'facetore1' ) - geompy.addToStudyInFather( tore, facetore2, 'facetore2' ) + geomPublishInFather(initLog.debug, tore, facetore1, 'facetore1' ) + geomPublishInFather(initLog.debug, tore, facetore2, 'facetore2' ) [volumeTore1, volumeTore2] = geompy.ExtractShapes(tore, geompy.ShapeType["SOLID"], True) - geompy.addToStudyInFather( tore, volumeTore1, 'volumeTore1' ) - geompy.addToStudyInFather( tore, volumeTore2, 'volumeTore2' ) + geomPublishInFather(initLog.debug, tore, volumeTore1, 'volumeTore1' ) + geomPublishInFather(initLog.debug, tore, volumeTore2, 'volumeTore2' ) return facetore1, facetore2, volumeTore1, volumeTore2