Salome HOME
bos #29171 Refactor testing procedure
[modules/smesh.git] / doc / examples / modifying_meshes_ex07.py
1 # Add Tetrahedron
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 tetrahedron
10 t1 = mesh.AddVolume([n1, 38, 39, 246])
11 if t1 == 0: print("KO tetrahedron addition.")
12 else:       print("New Tetrahedron has been added with ID ", t1)