smesh/doc/salome/examples/modifying_meshes_ex01.py

17 lines
297 B
Python
Raw Normal View History

2013-02-12 20:37:44 +06:00
# Add Node
import salome
salome.salome_init()
from salome.smesh import smeshBuilder
2017-06-13 15:01:10 +05:00
smesh = smeshBuilder.New()
2013-02-12 20:37:44 +06:00
mesh = smesh.Mesh()
# add node
new_id = mesh.AddNode(50, 10, 0)
print ""
if new_id == 0: print "KO node addition."
else: print "New Node has been added with ID ", new_id