smesh/src/Tools/blocFissure/gmu/getSubshapeIds.py

19 lines
515 B
Python
Raw Normal View History

2014-01-09 14:20:44 +00:00
# -*- coding: utf-8 -*-
import logging
2017-03-20 13:27:30 +01:00
from .geomsmesh import geompy
2014-01-09 14:20:44 +00:00
# -----------------------------------------------------------------------------
# --- 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