mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
13 lines
253 B
Python
13 lines
253 B
Python
# Add Edge
|
|
|
|
from mechanic import *
|
|
|
|
# add node
|
|
n1 = mesh.AddNode(50, 10, 0)
|
|
if n1 == 0: print("KO node addition.")
|
|
|
|
# add edge
|
|
e1 = mesh.AddEdge([n1, 38])
|
|
if e1 == 0: print("KO edge addition.")
|
|
else: print("New Edge has been added with ID ", e1)
|