X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=doc%2Fsalome%2Fexamples%2Fmodifying_meshes_ex08.py;fp=doc%2Fsalome%2Fexamples%2Fmodifying_meshes_ex08.py;h=0000000000000000000000000000000000000000;hb=4cf07a14111e98e8889620ee7e6371574c31a50c;hp=1cf27c5dfce97f23369807701add34db508b4e69;hpb=d9f4b53e489dd5857db264ede6acded7b076c9f1;p=modules%2Fsmesh.git diff --git a/doc/salome/examples/modifying_meshes_ex08.py b/doc/salome/examples/modifying_meshes_ex08.py deleted file mode 100644 index 1cf27c5df..000000000 --- a/doc/salome/examples/modifying_meshes_ex08.py +++ /dev/null @@ -1,19 +0,0 @@ -# Add Hexahedron - -import SMESH_mechanic - -mesh = SMESH_mechanic.mesh -print("") - -# add nodes -nId1 = mesh.AddNode(50, 10, 0) -nId2 = mesh.AddNode(47, 12, 0) -nId3 = mesh.AddNode(50, 10, 10) -nId4 = mesh.AddNode(47, 12, 10) - -if nId1 == 0 or nId2 == 0 or nId3 == 0 or nId4 == 0: print("KO node addition.") - -# add hexahedron -vId = mesh.AddVolume([nId2, nId1, 38, 39, nId4, nId3, 245, 246]) -if vId == 0: print("KO Hexahedron addition.") -else: print("New Hexahedron has been added with ID ", vId)