Return coordinates for vertices, supporting entire brain via hemilist.
vertex.coords(surface, vertices)
double nx3 matrix of vertex coordinates.
an fs.surface instance, see subject.surface
function. Can also be a hemilist of surfaces, in which case the vertices must be indices over both meshes (in range 1..(nv(lh)+nv(rh))
). If a hemilist, both entries must be surfaces (non-NULL).
vector of positive integers, the vertex indices. Values which are outside of the valid indices for the surface will be silently ignored, making it easier to work with the two hemispheres.
Other 3d utility functions:
highlight.points.spheres()
,
highlight.vertices.spheres()