smesh/doc/salome/examples/modifying_meshes_ex02.py
2013-02-12 14:37:44 +00:00

16 lines
275 B
Python

# Add 0D Element
import smesh
mesh = smesh.Mesh()
# add node
node_id = mesh.AddNode(50, 10, 0)
# add 0D Element
new_id = mesh.Add0DElement(node_id)
print ""
if new_id == 0: print "KO node addition."
else: print "New 0D Element has been added with ID ", new_id