Selected vertex attracts it's nearest neighbor to weld into it.
Hello guys,
I am in need of a script:
Selected vertex attracts it's nearest neighbor to weld into it.
If more than one vertex is selected, each selected vertex should attract to it the nearest neighbor. Only one vertex to be welded to the original vertex.
Would appreciate if anybody could help on this :)

Comments
Thanks, it works although
Thanks, it works although again not for all vertices.. would be nice if there is a way to tweak it so it works for all.
If not doable I am still happy with what it does now though. Thanks :)
Can you send me a scene where
Can you send me a scene where the script not works for some of the verts? You can select the verts, so when I open the scene I can see which verts hav e to attract iss neighbors and then I will see whic verts are not selected.
Tools and Scripts for Autodesk 3dsMax
Here is a small test where
Here is a small test where you have 6 verts selected and after the script runs, there is one selected:
File is max 2010
http://www.sendspace.com/file/dv3a5l
And here is the script.
Don't forget to thanks to Branko.
Tools and Scripts for Autodesk 3dsMax
Works great! Thanks for the
Works great! Thanks for the script, its greatly appreciated! :)
A slightly optimized version
Tools and Scripts for Autodesk 3dsMax
...more then sligthly optimized version :)
You know that the code will be optimized more if you use polyOp outside for-loop :)
Perhaps in this case there is no need for that. Can you try this:(not tested)
bga
...more then sligthly optimized version :)
You know that the code will be optimized more if you use polyOp outside for-loop :)
Perhaps in this case there is no need for that. Can you try this:(not tested)
bga
...more then sligthly optimized version :)
You know that the code will be optimized more if you use polyOp outside for-loop :)
Perhaps in this case there is no need for that. Can you try this:(not tested)
bga
Hey Kostadin
Why me? I didn't do anything.
All credits goes to you. You did exelent job. :)
Anyway how is your son, do you feel better?
bga