I need to select a polyline or mesh with custom user data, pick a point from a set of construction points and retrieve some user data from these. This data is exactly the index of the picked point in an array contained in the user data.
I found a naive way to do this: I pick a point and then I loop over the user data array to find another point with exactly the same (x,y,z) coordinates, and take its index.
It works but I’d rather avoid comparing double values and dealing with machine precision. Does somebody have a better idea on the way to do it?
Thanks a lot,