X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FTools%2FblocFissure%2Fgmu%2FgetSubshapeIds.py;h=7d75c7d452b7c88d23d920714383d1c403a5e201;hp=15383c9cd33334a097fe9599ea6ad601346b7fac;hb=499f29d24922cec66e41b41a0039a954993bc6df;hpb=d5029840731bccaa1718e65f0abf3b19198c7293 diff --git a/src/Tools/blocFissure/gmu/getSubshapeIds.py b/src/Tools/blocFissure/gmu/getSubshapeIds.py index 15383c9cd..7d75c7d45 100644 --- a/src/Tools/blocFissure/gmu/getSubshapeIds.py +++ b/src/Tools/blocFissure/gmu/getSubshapeIds.py @@ -1,18 +1,34 @@ # -*- coding: utf-8 -*- +# Copyright (C) 2014-2022 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 +# +"""Transformation d'une liste de subshapes en une liste d'Id""" import logging -from .geomsmesh import geompy -# ----------------------------------------------------------------------------- -# --- transformation d'une liste de subshapes en une liste d'Id +from .geomsmesh import geompy def getSubshapeIds(obj, subshapes): - """ - transformation d'une liste de subshapes en une liste d'Id - """ + """Transformation d'une liste de subshapes en une liste d'Id""" logging.debug("start") - subshapesId = [] + subshapesId = list() for sub in subshapes: subshapesId.append(geompy.GetSubShapeID(obj, sub)) logging.debug("subshapesId=%s", subshapesId) + return subshapesId