X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FTools%2FblocFissure%2Fgmu%2Fgeomsmesh.py;h=baa874ee7ce3fc59f63f73a7f4f811e257930814;hp=889d35ba309b05e2334c8fe5d035118f9297fcd8;hb=77b224bfc97465d694c206f026d02fc5ea70a0a3;hpb=249a5808d82222ae3f9cde764ed8387a5d7ea72e diff --git a/src/Tools/blocFissure/gmu/geomsmesh.py b/src/Tools/blocFissure/gmu/geomsmesh.py index 889d35ba3..baa874ee7 100644 --- a/src/Tools/blocFissure/gmu/geomsmesh.py +++ b/src/Tools/blocFissure/gmu/geomsmesh.py @@ -2,6 +2,7 @@ import logging logging.info('start') +from initLog import getLogLevel import salome salome.salome_init() @@ -13,3 +14,12 @@ from salome.smesh import smeshBuilder smesh = smeshBuilder.New(salome.myStudy) logging.debug("initialisation de geompy et smesh OK") + +def geomPublishDebug(aShape, aName): + if getLogLevel() <= 1: + geompy.addToStudy(aShape, aName) + +def geomPublishDebugInFather(aFather, aShape, aName): + if getLogLevel() <= 1: + geompy.addToStudyInFather(aFather, aShape, aName) + \ No newline at end of file