Salome HOME
projects
/
modules
/
smesh.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Prevent failure of opening Mesh dialog if unable to load some mesher plugin
[modules/smesh.git]
/
doc
/
salome
/
examples
/
modifying_meshes_ex01.py
1
# Add Node
2
3
import salome
4
salome.salome_init_without_session()
5
6
from salome.smesh import smeshBuilder
7
smesh = smeshBuilder.New()
8
9
10
mesh = smesh.Mesh()
11
12
# add node
13
new_id = mesh.AddNode(50, 10, 0)
14
print("")
15
if new_id == 0: print("KO node addition.")
16
else: print("New Node has been added with ID ", new_id)