mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 18:00:34 +05:00
19 lines
535 B
Python
19 lines
535 B
Python
# 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()))
|