mesh.Vertices returns multiple time the same vertex

I am currently switching from Rhino 5 to Rhino 7.

In Rhino 5 when I run this code, I get 1 point per vertex:

import rhinoscriptsyntax as rs
mesh = rs.coercemesh(rs.GetObject(‘mesh’))
for vertex in mesh.Vertices:
rs.AddPoint(vertex)

Now in Rhino 7, I get multiple points per vertex:

What can I do to get 1 point per vertex in Rhino 7?

Regards

I got no idea on rhinoscripting or python scrpting (yet!) but is using any tool to remove duplicate points out of scope?
In grasshopper you have plenty of choices to do that (for example kangaroo remove duplicate points tool), or to simply extract the vertices of a mesh as shown in the picture.

1 Like

Hello- Weld should do that.

-Pascal

Solved thank you!