Salome HOME
general crack dialog: working on log...
[modules/smesh.git] / src / Tools / blocFissure / gmu / construitPartitionsPeauFissure.py
index 05430c750d4df991dd4f522b8c405844451e6cd9..20ba23bf511e5028dcdd62ebf1176a64b07b28a6 100644 (file)
@@ -2,6 +2,9 @@
 
 import logging
 from geomsmesh import geompy
+from geomsmesh import geomPublish
+from geomsmesh import geomPublishInFather
+import initLog
 from checkDecoupePartition import checkDecoupePartition
 
   # -----------------------------------------------------------------------------
@@ -35,7 +38,7 @@ def construitPartitionsPeauFissure(facesDefaut, fissPipe):
         fissPipePart = fissPipe
       part = geompy.MakePartition([fissPipePart, filling], [], [], [], geompy.ShapeType["FACE"], 0, [], 0)
       partitionsPeauFissFond.append(part)
-      geompy.addToStudy( part, 'partitionPeauFissFond%d'%ipart )
+      geomPublish(initLog.debug, part, 'partitionPeauFissFond%d'%ipart )
     else:
       partitionsPeauFissFond.append(None)
     ipart = ipart +1