Salome HOME
PR: synchro V6_main tag mergeto_V7_main_11Feb13
[modules/smesh.git] / doc / salome / examples / modifying_meshes_ex13.py
1 # Removing Orphan Nodes
2
3 import SMESH_mechanic
4
5 mesh = SMESH_mechanic.mesh
6
7 # add orphan nodes
8 mesh.AddNode(0,0,0)
9 mesh.AddNode(1,1,1)
10 # remove just created orphan nodes
11 res = mesh.RemoveOrphanNodes()
12 if res == 1: print "Removed %d nodes!" % res
13 else:        print "KO nodes removing."