X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FTools%2FblocFissure%2Fgmu%2Fgeomsmesh.py;h=4c61d1b924f821d53c152c7c70b09013a3203fc7;hb=c570e0f979380e153cef5dd6beb519180e89bd31;hp=889d35ba309b05e2334c8fe5d035118f9297fcd8;hpb=072a73120b6db7bba2389aa7ada0cde20e22ee57;p=modules%2Fsmesh.git diff --git a/src/Tools/blocFissure/gmu/geomsmesh.py b/src/Tools/blocFissure/gmu/geomsmesh.py index 889d35ba3..4c61d1b92 100644 --- a/src/Tools/blocFissure/gmu/geomsmesh.py +++ b/src/Tools/blocFissure/gmu/geomsmesh.py @@ -1,7 +1,8 @@ # -*- coding: utf-8 -*- import logging -logging.info('start') +#logging.info('start') +import initLog import salome salome.salome_init() @@ -12,4 +13,13 @@ geompy = geomBuilder.New(salome.myStudy) from salome.smesh import smeshBuilder smesh = smeshBuilder.New(salome.myStudy) -logging.debug("initialisation de geompy et smesh OK") +# logging.debug("initialisation de geompy et smesh OK") + +def geomPublish(level,aShape, aName): + if initLog.getLogLevel() <= level: + geompy.addToStudy(aShape, aName) + +def geomPublishInFather(level, aFather, aShape, aName): + if initLog.getLogLevel() <= level: + geompy.addToStudyInFather(aFather, aShape, aName) + \ No newline at end of file