5 mesh = SMESH_mechanic.mesh
9 n1 = mesh.AddNode(50, 10, 0)
10 if n1 == 0: print("KO node addition.")
12 n2 = mesh.AddNode(40, 20, 0)
13 if n2 == 0: print("KO node addition.")
16 q1 = mesh.AddFace([n2, n1, 38, 39])
17 if q1 == 0: print("KO quadrangle addition.")
18 else: print("New Quadrangle has been added with ID ", q1)