Salome HOME
generalisation publication conditionnelle
[modules/smesh.git] / src / Tools / blocFissure / gmu / compoundFromList.py
index 6787b252045ac7e9f60cde6889a320b04165c79b..8f1ed19629d4582e35c827b9c476c94c264da8ce 100644 (file)
@@ -2,6 +2,9 @@
 
 import logging
 from geomsmesh import geompy
+from geomsmesh import geomPublish
+from geomsmesh import geomPublishInFather
+import initLog
 
 def compoundFromList(elements, nom=None):
   """
@@ -21,7 +24,7 @@ def compoundFromList(elements, nom=None):
     for i,a in enumerate(shapeList):
       nom = nom +"%d"%i
       logging.debug('nom: %s',nom)
-      geompy.addToStudy(a, nom)
+      geomPublish(initLog.debug, a, nom)
 
   shapeCompound = None
   if len(shapeList) > 0: