Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RĂ©pertoire correct
[modules/smesh.git]
/
doc
/
salome
/
examples
/
modifying_meshes_ex19.py
diff --git
a/doc/salome/examples/modifying_meshes_ex19.py
b/doc/salome/examples/modifying_meshes_ex19.py
index c3eaf497795d0d381d70139c043ea89a239fbedc..7e3c723c52ea956c7da551804b924b0e0f0f7da2 100644
(file)
--- a/
doc/salome/examples/modifying_meshes_ex19.py
+++ b/
doc/salome/examples/modifying_meshes_ex19.py
@@
-1,7
+1,17
@@
# Orientation
# Orientation
+
import salome
import salome
-import smesh
+salome.salome_init()
+import GEOM
+from salome.geom import geomBuilder
+geompy = geomBuilder.New()
+
+import SMESH, SALOMEDS
+from salome.smesh import smeshBuilder
+smesh = smeshBuilder.New()
+import salome_notebook
+
# create an empty mesh structure
mesh = smesh.Mesh()
# 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])
# Change the orientation of the second and the fourth faces.
mesh.Reorient([2, 4])
-salome.sg.updateObjBrowser(
1
)
+salome.sg.updateObjBrowser()