# -*- 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
#
# 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