Hi guys,
What's a good way to store point cloud data so that it's optimal for an application that will do one of these two queries?
- Nearest (i.e. lowest euclidean distance) data point to (x,y,z)
- Get all the points inside a sphere with radius R around a point (x,y,z)
The structure will only be filled once, but read many times. A lowish memory footprint would be nice as I may be dealing with datasets of > 7 million points, but speed should be of primary concern. A library would be nice, but I wouldn't mind implementing it myself if it's something doable with limited expertise in the area.
Thanks in advance!