closest.vert.to.point: Find vertex index closest to given query coordinate using...

View source: R/surface_dist.R

closest.vert.to.pointR Documentation

Find vertex index closest to given query coordinate using Euclidean distance.

Description

Find vertex index closest to given query coordinate using Euclidean distance.

Usage

closest.vert.to.point(surface, point_coords)

Arguments

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 byrow to such a matrix.

Value

named list with entries: 'vertex_id' integer vector, the index of the closest vertex, and 'dist': double vector, the Euclidean distance to that vertex.

See Also

Other Euclidean distance util functions: vertex.euclid.dist(), vertexdists.to.point()


freesurferformats documentation built on May 29, 2024, 5:29 a.m.