smesh/doc/salome/examples/modifying_meshes_ex01.py
2017-03-20 13:41:53 +01:00

17 lines
314 B
Python

# Add Node
import salome
salome.salome_init()
from salome.smesh import smeshBuilder
smesh = smeshBuilder.New(salome.myStudy)
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)