Is it possible to get the ID(s) of the selected mesh point(s)? The point’s index in the mesh vertex list, I mean.
I need this for analyzing/debugging a python script that generates a mesh.
The ‘What’ command does not work on points, and the ‘EvaluatePt’ command just shows the coordinates.
You can use the GetMeshVertices function
So, without some lines of script, this is not possible? Allright, I will write me a script then…
import rhinoscriptsyntax as rs
mesh = rs.GetObject("Select mesh", rs.filter.mesh)
indices = rs.GetMeshVertices(mesh)
for index in indices: print index
Hi! Thank you!
While you are at it: can you add that only the selected vertices are listed? =)