Search the Community
Showing results for tags 'nearest point'.
-
Hello, I started learning hdk. I need to find a nearest point, what the best way to do this? I have an example code in attachments. But it doesn't work as expected. Thanks sandDunes.cpp sandDunes.h
- 4 replies
-
- npt
- nearest point
-
(and 1 more)
Tagged with:
-
So for the last view weeks I've been learning vex, great stuff. So now I want to turn my new awesome vex knowledge into practise. The goal of this operation is the measure the distance between each point to their closest neighbour. First, I use the pcfind function to grab the nearest point of each point number and put them in an array. Second, now I like to grab the values from the array and put them into a distance function. (BUT HOW?) I find array a bit of a vague concept. I get its a list of values, but I'm not really sure if the point numbers in the array also hold the position vector. Not sure if I'm doing this right, and probably there better way. If this method is right, pretty please help me out. kind regards, The new kid on the block measure_distance_nearpoint.hip