This module provides tools to facilitate the use of geom engine and geom
objects in Salome.
"""
-
import salome
GEOM = None # GEOM module is loaded only when needed
from salome.kernel.studyedit import getActiveStudyId, getStudyEditor
from salome.kernel.services import IDToObject, IDToSObject
-try:
+from salome.kernel.deprecation import is_called_by_sphinx
+if not is_called_by_sphinx():
from salome.gui import helper as guihelper
-except:
- pass
_geompys = {}
Additionnal examples can be found as unit tests in the source code.
"""
-
+from salome.kernel.deprecation import is_called_by_sphinx
geompyEnable = True
-try:
+if not is_called_by_sphinx():
import salome
salome.salome_init()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New(salome.myStudy)
-except:
- geompyEnable = False
-
class Sketcher: