Salome HOME
projects
/
modules
/
smesh.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
bos #29171 Refactor testing procedure
[modules/smesh.git]
/
doc
/
examples
/
modifying_meshes_ex05.py
1
# Add Triangle
2
3
from mechanic import *
4
5
# add node
6
n1 = mesh.AddNode(50, 10, 0)
7
if n1 == 0: print("KO node addition.")
8
9
# add triangle
10
t1 = mesh.AddFace([n1, 38, 39])
11
if t1 == 0: print("KO triangle addition.")
12
else: print("New Triangle has been added with ID ", t1)