4 mesh = SMESH_mechanic.mesh
6 # remove nodes #246 and #255
8 res = mesh.RemoveNodes([246, 255])
9 if res == 1: print("Nodes removing is OK!")
10 else: print("KO nodes removing.")
13 # Removing a Node with Reconnection
14 # ==================================
16 print("Before RemoveNodeWithReconnection(): %s nodes, %s faces" % ( mesh.NbNodes(), mesh.NbFaces()))
17 mesh.RemoveNodeWithReconnection( 600 )
18 print("After RemoveNodeWithReconnection(): %s nodes, %s faces" % ( mesh.NbNodes(), mesh.NbFaces()))