smesh/doc/salome/examples/modifying_meshes_ex01.py

17 lines
316 B
Python
Raw Normal View History

2013-02-12 20:37:44 +06:00
# Add Node
import salome
salome.salome_init_without_session()
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)
2017-03-20 17:27:30 +05:00
print("")
if new_id == 0: print("KO node addition.")
else: print("New Node has been added with ID ", new_id)