This function reads <count> x/y/z triplets from [g]megabuf, starting at <index> and advancing <stride> elements each time. It then finds the element closest to the given coordinates.
This function reads <count> x/y/z triplets from [g]megabuf, starting at <index> and advancing <stride> elements each time. It then finds the element closest to the given coordinates.