mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-11 16:19:16 +05:00
12 lines
261 B
Python
12 lines
261 B
Python
# Removing Orphan Nodes
|
|
|
|
from mechanic import *
|
|
|
|
# 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.")
|