Salome HOME
projects
/
modules
/
smesh.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
4189b852b885631d699ebd07d23ae037da3e6fcf
[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."