def TEST_createObject():
"""
- WARNING: for this test, we need GEOM (used to create an object
+ WARNING: for this test, we need GEOM (used to create an object)
"""
- import geompy
- geompy.init_geom(salome.myStudy)
+ import GEOM
+ from salome.geom import geomBuilder
+ geompy = geomBuilder.New(salome.myStudy)
+
box = geompy.MakeBoxDXDYDZ(200, 200, 200)
id = geompy.addToStudy( box, 'box' )
return id
print " %d. Test Mesh " % step; step+=1
print "======================================================================"
-import StdMeshers
+from salome.StdMeshers import StdMeshersBuilder
import SMESH
+from salome.smesh import smeshBuilder
smesh = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH")
if salome.hasDesktop():
smeshgui = salome.ImportComponentGUI("SMESH")
smeshgui.Init(salome.myStudyId);
else:
- smesh.SetCurrentStudy(salome.myStudy)
+ smesh = smeshBuilder.New(salome.myStudy)
# ---- create hypotheses