Salome HOME
projects
/
plugins
/
blsurfplugin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deleted Study parameter
[plugins/blsurfplugin.git]
/
tests
/
test_sphere.py
diff --git
a/tests/test_sphere.py
b/tests/test_sphere.py
index bea9381625675c00cc70b3c534a60c430d475a7c..5f622107283edaabfffa82a44c31e87b9403165e 100644
(file)
--- a/
tests/test_sphere.py
+++ b/
tests/test_sphere.py
@@
-4,7
+4,6
@@
import sys
import salome
salome.salome_init()
import salome
salome.salome_init()
-theStudy = salome.myStudy
###
### GEOM component
###
### GEOM component
@@
-12,10
+11,10
@@
theStudy = salome.myStudy
import GEOM
from salome.geom import geomBuilder
import GEOM
from salome.geom import geomBuilder
-geompy = geomBuilder.New(
salome.myStudy
)
+geompy = geomBuilder.New()
-geompy.init_geom(
theStudy
)
+geompy.init_geom()
sphere = geompy.MakeSphereR(10)
geompy.addToStudy( sphere, 'sphere' )
sphere = geompy.MakeSphereR(10)
geompy.addToStudy( sphere, 'sphere' )
@@
-26,7
+25,7
@@
geompy.addToStudy( sphere, 'sphere' )
import SMESH
from salome.smesh import smeshBuilder
import SMESH
from salome.smesh import smeshBuilder
-smesh = smeshBuilder.New(
salome.myStudy
)
+smesh = smeshBuilder.New()
Mesh_1 = smesh.Mesh(sphere)
Mesh_1 = smesh.Mesh(sphere)
@@
-50,4
+49,4
@@
if not ok:
raise Exception("Error when computing volume mesh")
if salome.sg.hasDesktop():
raise Exception("Error when computing volume mesh")
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(
True
)
+ salome.sg.updateObjBrowser()