Learn R Programming

fsbrain (version 0.1.0)

fs.coloredmesh: fs.coloredmesh constructor

Description

fs.coloredmesh constructor

Usage

fs.coloredmesh(mesh, col, hemi, render = TRUE, metadata = NULL)

Arguments

mesh

a `mesh3d` instance as returned by tmesh3d or an `fs.surface` brain surface mesh as returned by functions like subject.surface.

col

vector of vertex colors for the mesh, one color per vertex

hemi

character string, one of 'lh' or 'rh'

render

logical, whether to render this mesh during visualization

metadata

optional, named list containing metadata

Value

an `fs.coloredmesh` instance. The only fields one should use in client code are 'mesh', 'hemi' and 'col', all others are considered internal and may change without notice.