1 # -*- coding: utf-8 -*-
4 from geomsmesh import geompy
6 def compoundFromList(elements, nom=None):
10 logging.debug('start')
14 if not isinstance(a, list):
18 shapeList.append(a[0])
21 for i,a in enumerate(shapeList):
23 logging.debug('nom: %s',nom)
24 geompy.addToStudy(a, nom)
27 if len(shapeList) > 0:
28 shapeCompound =geompy.MakeCompound(shapeList)