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
Merge 'master' branch into 'V9_dev' branch.
[modules/smesh.git]
/
doc
/
salome
/
examples
/
modifying_meshes_ex08.py
diff --git
a/doc/salome/examples/modifying_meshes_ex08.py
b/doc/salome/examples/modifying_meshes_ex08.py
index 4cfa89ee4f8fd727b0cb5a9f30fd68873e6e22e1..1cf27c5dfce97f23369807701add34db508b4e69 100644
(file)
--- a/
doc/salome/examples/modifying_meshes_ex08.py
+++ b/
doc/salome/examples/modifying_meshes_ex08.py
@@
-3,7
+3,7
@@
import SMESH_mechanic
mesh = SMESH_mechanic.mesh
import SMESH_mechanic
mesh = SMESH_mechanic.mesh
-print
""
+print
("")
# add nodes
nId1 = mesh.AddNode(50, 10, 0)
# add nodes
nId1 = mesh.AddNode(50, 10, 0)
@@
-11,9
+11,9
@@
nId2 = mesh.AddNode(47, 12, 0)
nId3 = mesh.AddNode(50, 10, 10)
nId4 = mesh.AddNode(47, 12, 10)
nId3 = mesh.AddNode(50, 10, 10)
nId4 = mesh.AddNode(47, 12, 10)
-if nId1 == 0 or nId2 == 0 or nId3 == 0 or nId4 == 0: print
"KO node addition."
+if nId1 == 0 or nId2 == 0 or nId3 == 0 or nId4 == 0: print
("KO node addition.")
# add hexahedron
vId = mesh.AddVolume([nId2, nId1, 38, 39, nId4, nId3, 245, 246])
# add hexahedron
vId = mesh.AddVolume([nId2, nId1, 38, 39, nId4, nId3, 245, 246])
-if vId == 0: print
"KO Hexahedron addition."
-else: print
"New Hexahedron has been added with ID ", vId
+if vId == 0: print
("KO Hexahedron addition.")
+else: print
("New Hexahedron has been added with ID ", vId)