Thanks for community support. let me phrase my questions with more detail lets suppose i have vertices of a tea cup.
Vx =[ 0;1;2;0;9]
Vy = [1;1;,2;;3]
Vz= = [38,32,-1]
They are cancatenated in a larger matrix = [Vx Vy Vz].
After sorting, i want to find first elements or coordinates like (0,1,38) here in Vx,Vy,Vz wherever they meet or match, it should be labelled as 5 in that particular grid.
Your guidance will be highly appreciated.