X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FTools%2FblocFissure%2Fgmu%2FgetSubshapeIds.py;h=f2408b8cc36500434bb735d3d7916177e201149c;hb=2cf6435f1492b63b9adf4e8256d88968638ed9bf;hp=27750e6c7735a80812cc75929cf8a1b3b6e63aab;hpb=385d4cede5f752d0eec26c306f3b5e14511e2a3d;p=modules%2Fsmesh.git diff --git a/src/Tools/blocFissure/gmu/getSubshapeIds.py b/src/Tools/blocFissure/gmu/getSubshapeIds.py index 27750e6c7..f2408b8cc 100644 --- a/src/Tools/blocFissure/gmu/getSubshapeIds.py +++ b/src/Tools/blocFissure/gmu/getSubshapeIds.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright (C) 2014-2019 CEA/DEN, EDF R&D +# 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 @@ -17,20 +17,18 @@ # # 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