aro.clo.points {Arothron} | R Documentation |
Find the closest matches between a reference (2D or 3D matrix) and a target matrix (2D/3D) or mesh returning row indices and distances
aro.clo.points(target, reference)
target |
kxm matrix or object of class "mesh3d" |
reference |
numeric: a kxm matrix (coordinates) |
position numeric: a vector of the row indices
distances numeric: a vector of the coordinates distances
Antonio Profico, Costantino Buzi, Marina Melchionna, Paolo Piras, Pasquale Raia, Alessio Veneziano
#load an example: mesh, and L set
data(yoda_sur)
data(yoda_set)
sur<-yoda_sur
set<-yoda_set
ver_pos<-aro.clo.points(target=sur,reference=set)