smesh/doc/examples/modifying_meshes_ex13.py

12 lines
261 B
Python
Raw Normal View History

2013-02-12 20:37:44 +06:00
# Removing Orphan Nodes
2022-04-11 18:28:01 +05:00
from mechanic import *
2013-02-12 20:37:44 +06:00
# add orphan nodes
mesh.AddNode(0,0,0)
mesh.AddNode(1,1,1)
# remove just created orphan nodes
res = mesh.RemoveOrphanNodes()
2017-03-20 17:27:30 +05:00
if res == 1: print("Removed %d nodes!" % res)
else: print("KO nodes removing.")