1 # -*- coding: utf-8 -*-
4 from .geomsmesh import geompy
6 # -----------------------------------------------------------------------------
7 # --- éliminer les doublons d'une liste de subshapes
9 def eliminateDoubles(obj, subshapes):
11 éliminer les doublons d'une liste de subshapes
15 subid = geompy.GetSubShapeID(obj, sub)
16 if subid in list(idsubs.keys()):
17 idsubs[subid].append(sub)
21 for k, v in idsubs.items():
22 shortList.append(v[0])
23 logging.debug("shortList=%s", shortList)