1 # -*- coding: utf-8 -*-
4 from .geomsmesh import geompy
5 from .geomsmesh import geomPublish
6 from .geomsmesh import geomPublishInFather
9 def compoundFromList(elements, nom=None):
13 logging.debug('start')
17 if not isinstance(a, list):
21 shapeList.append(a[0])
24 for i,a in enumerate(shapeList):
26 logging.debug('nom: %s',nomi)
27 geomPublish(initLog.debug, a, nomi)
30 if len(shapeList) > 0:
31 shapeCompound =geompy.MakeCompound(shapeList)
32 nomc = "compound_%s"%nom
33 geomPublish(initLog.debug, shapeCompound, nomc)