smesh/doc/salome/examples/modifying_meshes_ex13.py
2017-03-20 13:41:53 +01:00

14 lines
288 B
Python

# Removing Orphan Nodes
import SMESH_mechanic
mesh = SMESH_mechanic.mesh
# add orphan nodes
mesh.AddNode(0,0,0)
mesh.AddNode(1,1,1)
# remove just created orphan nodes
res = mesh.RemoveOrphanNodes()
if res == 1: print("Removed %d nodes!" % res)
else: print("KO nodes removing.")