smesh/doc/salome/examples/modifying_meshes_ex01.py

17 lines
314 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
smesh = smeshBuilder.New(salome.myStudy)
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)