fs.coloredmesh: fs.coloredmesh constructor

Description Usage Arguments Value

View source: R/coloredmesh.R

Description

fs.coloredmesh constructor

Usage

1
2
3
4
5
6
7
8
fs.coloredmesh(
  mesh,
  col,
  hemi,
  render = TRUE,
  metadata = NULL,
  add_normals = FALSE
)

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. Expanded if exactly one color.

hemi

character string, one of 'lh' or 'rh'. This may be used by visualization functions to decide whether or not to show this mesh in a certain view.

render

logical, whether to render this mesh during visualization

metadata

optional, named list containing metadata

add_normals

logical, whether to compute normals and save them in the mesh.

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.


fsbrain documentation built on Sept. 16, 2021, 5:07 p.m.