Arguments
x
k x 3 matrix containing 3D-coordinates or object of class mesh3d
.
mesh
triangular surface mesh stored as object of class mesh3d
.
k
neighbourhood of kd-tree to search - the larger, the slower -
but the more likely the absolutely closest point is hit.
sign
logical: if TRUE, signed distances are returned.
barycoords
logical: if TRUE
, barycentric
coordinates of the hit points are returned.
cores
integer: how many cores to use for the search algorithm.
method
integer: either 0 or 1, if 0 ordinary Euclidean distance
is used, if 1, the distance suggested by Moshfeghi(1994) is calculated.
...
additional arguments. currently unavailable.