X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FTools%2FblocFissure%2Fgmu%2FpartitionVolumeSain.py;h=3d713249c5a95cdfabcaba000cfe6544c92d8546;hp=a23fa591a13f6af015f1338d139ff1faa51c1c61;hb=HEAD;hpb=072a73120b6db7bba2389aa7ada0cde20e22ee57 diff --git a/src/Tools/blocFissure/gmu/partitionVolumeSain.py b/src/Tools/blocFissure/gmu/partitionVolumeSain.py index a23fa591a..f36f753f9 100644 --- a/src/Tools/blocFissure/gmu/partitionVolumeSain.py +++ b/src/Tools/blocFissure/gmu/partitionVolumeSain.py @@ -1,10 +1,33 @@ # -*- coding: utf-8 -*- +# Copyright (C) 2014-2024 EDF +# +# 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 +# +"""Partition volume sain et bloc, face du bloc recevant la fissure""" import logging -from geomsmesh import geompy -# ----------------------------------------------------------------------------- -# --- partition volume sain et bloc, face du bloc recevant la fissure +import GEOM + +from .geomsmesh import geompy +from .geomsmesh import geomPublish +from .geomsmesh import geomPublishInFather + +from . import initLog def partitionVolumeSain(volumeSain,boiteDefaut): """ @@ -26,8 +49,8 @@ def partitionVolumeSain(volumeSain,boiteDefaut): partieSaine = b faceBloc = geompy.GetShapesOnShapeAsCompound(volumeSain, volDefaut, geompy.ShapeType["FACE"], GEOM.ST_ON) - geompy.addToStudy( volumeSainPart, 'volumeSainPart' ) - geompy.addToStudyInFather( volumeSainPart, partieSaine, 'partieSaine' ) - geompy.addToStudyInFather( volumeSainPart, volDefaut, 'volDefaut' ) - geompy.addToStudyInFather( volDefaut, faceBloc, 'faceBloc' ) + geomPublish(initLog.debug, volumeSainPart, 'volumeSainPart' ) + geomPublishInFather(initLog.debug, volumeSainPart, partieSaine, 'partieSaine' ) + geomPublishInFather(initLog.debug, volumeSainPart, volDefaut, 'volDefaut' ) + geomPublishInFather(initLog.debug, volDefaut, faceBloc, 'faceBloc' ) return volumeSainPart, partieSaine, volDefaut, faceBloc