closest.vert.to.point | R Documentation |
Find vertex index closest to given query coordinate using Euclidean distance.
closest.vert.to.point(surface, point_coords)
surface |
an fs.surface instance or a nx3 numerical matrix representing mesh points. |
point_coords |
nx3 matrix of query coords. If a vector, will be transformed |
named list with entries: 'vertex_id' integer vector, the index of the closest vertex, and 'dist': double vector, the Euclidean distance to that vertex.
Other Euclidean distance util functions:
vertex.euclid.dist()
,
vertexdists.to.point()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.