Salome HOME
projects
/
modules
/
smesh.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Prevent failure of opening Mesh dialog if unable to load some mesher plugin
[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.")