perform kdtree search for 3D-coordinates.
vcgKDtree(target, query, k, nofPoints = 16, maxDepth = 64, threads = 1)
a list with
integer matrices with indeces of closest points
corresponding distances
n x 3 matrix with 3D coordinates or mesh of class "mesh3d". These coordinates are to be searched.
m x 3 matrix with 3D coordinates or mesh of class "mesh3d". We seach the closest coordinates in target
for each of these.
number of neighbours to find
integer: number of points per cell in the kd-tree (don't change unless you know what you are doing!)
integer: depth of the kd-tree (don't change unless you know what you are doing!)
integer: threads to use in closest point search.