Salome HOME
Update copyrights in the documentation.
[modules/smesh.git] / doc / salome / examples / modifying_meshes_ex19.py
index c3eaf497795d0d381d70139c043ea89a239fbedc..8ef2c7c8a581fd56ad21bf6582e194068b888849 100644 (file)
@@ -1,7 +1,17 @@
 # Orientation
 
+
 import salome
-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)
+import salome_notebook
+
 
 # create an empty mesh structure
 mesh = smesh.Mesh() 
@@ -32,4 +42,4 @@ f5 = mesh.AddFace([n5, n6, n12, n11])
 # Change the orientation of the second and the fourth faces.
 mesh.Reorient([2, 4])
 
-salome.sg.updateObjBrowser(1)
+salome.sg.updateObjBrowser(True)