powered by
Retrieves a brain surface mesh for the specified hemisphere and surface type. By default, provides the inflated fsaverage5 surface from internal data. Other surfaces (pial, white, semi-inflated) require the ggseg3d package.
get_brain_mesh( hemisphere = c("lh", "rh"), surface = "inflated", brain_meshes = NULL )
A list with vertices (data.frame with x, y, z) and faces
vertices
faces
(data.frame with i, j, k), or NULL if the mesh is not available.
"lh" or "rh"
"lh"
"rh"
Surface type (default "inflated"). Other surfaces require ggseg3d or a custom brain_meshes argument.
"inflated"
brain_meshes
Optional user-supplied mesh data. Accepts either list(lh = list(vertices, faces), rh = ...) or the legacy list(lh_inflated = list(vertices, faces), ...) format.
list(lh = list(vertices, faces), rh = ...)
list(lh_inflated = list(vertices, faces), ...)
mesh <- get_brain_mesh("lh") head(mesh$vertices)
Run the code above in your browser using DataLab