Salome HOME
52976: Find Elements by Point - All does not find Ball element
[modules/smesh.git] / doc / salome / examples / modifying_meshes_ex07.py
1 # Add Tetrahedron
2
3 import SMESH_mechanic
4
5 mesh = SMESH_mechanic.mesh
6 print ""
7
8 # add node
9 n1 = mesh.AddNode(50, 10, 0)
10 if n1 == 0: print "KO node addition."
11
12 # add tetrahedron
13 t1 = mesh.AddVolume([n1, 38, 39, 246])
14 if t1 == 0: print "KO tetrahedron addition."
15 else:       print "New Tetrahedron has been added with ID ", t1