mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-27 13:45:37 +05:00
19 lines
514 B
Python
19 lines
514 B
Python
![]() |
# -*- coding: utf-8 -*-
|
||
|
|
||
|
import logging
|
||
|
from geomsmesh import geompy
|
||
|
|
||
|
# -----------------------------------------------------------------------------
|
||
|
# --- transformation d'une liste de subshapes en une liste d'Id
|
||
|
|
||
|
def getSubshapeIds(obj, subshapes):
|
||
|
"""
|
||
|
transformation d'une liste de subshapes en une liste d'Id
|
||
|
"""
|
||
|
logging.debug("start")
|
||
|
subshapesId = []
|
||
|
for sub in subshapes:
|
||
|
subshapesId.append(geompy.GetSubShapeID(obj, sub))
|
||
|
logging.debug("subshapesId=%s", subshapesId)
|
||
|
return subshapesId
|