mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 01:40:33 +05:00
13 lines
272 B
Python
13 lines
272 B
Python
# Add Triangle
|
|
|
|
from mechanic import *
|
|
|
|
# add node
|
|
n1 = mesh.AddNode(50, 10, 0)
|
|
if n1 == 0: print("KO node addition.")
|
|
|
|
# add triangle
|
|
t1 = mesh.AddFace([n1, 38, 39])
|
|
if t1 == 0: print("KO triangle addition.")
|
|
else: print("New Triangle has been added with ID ", t1)
|