Hello!
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.
import rhinoscriptsyntax as rs
mesh = rs.GetObject("Select mesh", rs.filter.mesh)
if mesh:
indices = rs.GetMeshVertices(mesh)
if indices:
for index in indices: print index