Salome HOME
projects
/
modules
/
smesh.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge from V6_main 01/04/2013
[modules/smesh.git]
/
doc
/
salome
/
examples
/
modifying_meshes_ex02.py
1
# Add 0D Element
2
3
import smesh
4
5
mesh = smesh.Mesh()
6
7
# add node
8
node_id = mesh.AddNode(50, 10, 0)
9
10
# add 0D Element
11
new_id = mesh.Add0DElement(node_id)
12
13
print ""
14
if new_id == 0: print "KO node addition."
15
else: print "New 0D Element has been added with ID ", new_id