X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fsalome%2Fexamples%2Fmodifying_meshes_ex11.py;h=16ffe8777dd53eaf4a52d27f19781cabb1a40264;hb=ff53fa3701555ca921fd568e921709528e26c5dc;hp=28b544bc0ed681898a247eb529f8d3b5488f764f;hpb=b7a7d49664daa32e1befb558280e13ed0bde37c9;p=modules%2Fsmesh.git diff --git a/doc/salome/examples/modifying_meshes_ex11.py b/doc/salome/examples/modifying_meshes_ex11.py index 28b544bc0..16ffe8777 100644 --- a/doc/salome/examples/modifying_meshes_ex11.py +++ b/doc/salome/examples/modifying_meshes_ex11.py @@ -1,10 +1,18 @@ # Removing Nodes import SMESH_mechanic - mesh = SMESH_mechanic.mesh # remove nodes #246 and #255 + res = mesh.RemoveNodes([246, 255]) if res == 1: print("Nodes removing is OK!") else: print("KO nodes removing.") + + +# Removing a Node with Reconnection +# ================================== + +print("Before RemoveNodeWithReconnection(): %s nodes, %s faces" % ( mesh.NbNodes(), mesh.NbFaces())) +mesh.RemoveNodeWithReconnection( 600 ) +print("After RemoveNodeWithReconnection(): %s nodes, %s faces" % ( mesh.NbNodes(), mesh.NbFaces()))