]> SALOME platform Git repositories - modules/smesh.git/blob - src/Tools/blocFissure/gmu/geomsmesh.py
Salome HOME
Allow saving groups with non-ascii names.
[modules/smesh.git] / src / Tools / blocFissure / gmu / geomsmesh.py
1 # -*- coding: utf-8 -*-
2
3 import logging
4 #logging.info('start')
5 from . import initLog
6
7 import salome
8 salome.salome_init()
9
10 from salome.geom import geomBuilder
11 geompy = geomBuilder.New()
12
13 from salome.smesh import smeshBuilder
14 smesh = smeshBuilder.New()
15
16 # logging.debug("initialisation de geompy et smesh OK")
17
18 def geomPublish(level,aShape, aName):
19   if initLog.getLogLevel() <= level:
20     geompy.addToStudy(aShape, aName)
21     
22 def geomPublishInFather(level, aFather, aShape, aName):
23   if initLog.getLogLevel() <= level:
24     geompy.addToStudyInFather(aFather, aShape, aName)
25