X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FTools%2FblocFissure%2Fgmu%2FcreeZoneDefautFilling.py;h=6835a003f19c38b767e38aa6ba5f500f95dca894;hb=d7ce9e283f7e6671e4b9d65f89b6320d6f57774b;hp=fd98acab2f5d2b7382c32d415a871f98da086bcb;hpb=0c5188fd2cf587b6c74c6adce920158f7edd4419;p=modules%2Fsmesh.git diff --git a/src/Tools/blocFissure/gmu/creeZoneDefautFilling.py b/src/Tools/blocFissure/gmu/creeZoneDefautFilling.py index fd98acab2..6835a003f 100644 --- a/src/Tools/blocFissure/gmu/creeZoneDefautFilling.py +++ b/src/Tools/blocFissure/gmu/creeZoneDefautFilling.py @@ -1,7 +1,28 @@ # -*- coding: utf-8 -*- +# Copyright (C) 2014-2021 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 # ----------------------------------------------------------------------------- # --- crée zone géométrique défaut a partir d'un filling @@ -21,15 +42,15 @@ def creeZoneDefautFilling(filling, shapeDefaut, lgExtrusion=50): trace = True facesDefaut = filling centreSphere = geompy.MakeCDG(shapeDefaut) - geompy.addToStudy(centreSphere, "cdg_defaut") + geomPublish(initLog.debug, centreSphere, "cdg_defaut") centreDefaut = geompy.MakeProjection(centreSphere, filling) if trace: - geompy.addToStudy(centreDefaut, "centreDefaut") + geomPublish(initLog.debug, centreDefaut, "centreDefaut") normalDefaut = geompy.GetNormal(filling, centreDefaut) if trace: - geompy.addToStudy(normalDefaut, "normalDefaut") + geomPublish(initLog.debug, normalDefaut, "normalDefaut") extrusionDefaut = geompy.MakePrismVecH(filling, normalDefaut, -lgExtrusion) if trace: - geompy.addToStudy(extrusionDefaut, "extrusionDefaut") + geomPublish(initLog.debug, extrusionDefaut, "extrusionDefaut") return facesDefaut, centreDefaut, normalDefaut, extrusionDefaut