Salome HOME
Merge from BR_plugins_pbyacs 03/04/2013
[modules/smesh.git] / src / SMESH_SWIG / PAL_MESH_043_3D.py
index bcee8d84a93b45bbffb86d352059b4b231f77005..b547265bcbfd36f608e669c93503f867476c813b 100755 (executable)
 #  Description : Create meshes to test extrusion of mesh elements along path
 #
 import salome
-import geompy
-import smesh
+salome.salome_init()
+import GEOM
+from salome.geom import geomBuilder
+geompy = geomBuilder.New(salome.myStudy)
+
+import SMESH, SALOMEDS
+from salome.smesh import smeshBuilder
+smesh =  smeshBuilder.New(salome.myStudy)
 
 
 # create points to build two circles
@@ -51,8 +57,6 @@ idcircle = geompy.addToStudy(circle, "Circle")
 idface   = geompy.addToStudy(face,   "Circular face")
 
 
-smesh.SetCurrentStudy(salome.myStudy)
-
 # init a Mesh with the circular face
 mesh1 = smesh.Mesh(face, "Mesh on circular face")