Mel Script For Polymerge

hello,

i have for example a mesh with 1000 vtx. some of these points have the same point position,
so i want to merge this points and later convert the mesh into a subdiv surface...

does anybody of you have an idea how i can filter the points with the same x y z value

do i have to use the distance tool and measure the distance between all points and if the distance is 0
i merge the two points or is there maybe a better solution.

thx

use the merge command in the poly menu, it does exactly what you ask. (mel is not to implement stuff that maya allready knows how to do)