Salome HOME
projects
/
modules
/
smesh.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Porting SALOME SMESH module to the CMake build system: initial version.
[modules/smesh.git]
/
doc
/
salome
/
examples
/
modifying_meshes_ex04.py
1
# Add Edge
2
3
import SMESH_mechanic
4
5
mesh = SMESH_mechanic.mesh
6
print ""
7
8
# add node
9
n1 = mesh.AddNode(50, 10, 0)
10
if n1 == 0: print "KO node addition."
11
12
# add edge
13
e1 = mesh.AddEdge([n1, 38])
14
if e1 == 0: print "KO edge addition."
15
else: print "New Edge has been added with ID ", e1