view_surface: display a surface via with rgl

Description Usage Arguments

View source: R/view_surface.R

Description

display a surface via with rgl

Usage

1
2
3
4
5
view_surface(surfgeom, vals = NA, cmap = rainbow(256, alpha = 1),
  vert_clrs = NULL, bgcol = "lightgray", alpha = 1,
  add_normals = TRUE, thresh = NULL, irange = range(vals, na.rm =
  TRUE), specular = specular, viewpoint = c("lateral", "medial",
  "ventral", "posterior"), offset = c(0, 0, 0), zoom = 1, ...)

Arguments

surfgeom

surface geometty of type SurfaceGeometry

vals

the vector of values at each surface node in x

cmap

a color map consisting of a vector of colors in hex format (e.g. gray(n=255))

vert_clrs

optional vertex colors in hex format

bgcol

a background color or vector of colors used to shade the surface.

alpha

the foreground trasnparency, default is 1 (opaque).

add_normals

whether to add_normals

thresh

a 2-element vector indicating the lower and upper transparency thresholds.

irange

the intensity range indicating the low and high values of the color scale.

specular

seergl material3d

viewpoint

the surface viewpoint (one of: 'lateral', 'medial', 'ventral', 'posterior')

offset

translation offset

zoom

zoom factor

...

args to send to rgl::shade3d


bbuchsbaum/neurosurf documentation built on April 6, 2021, 10:08 a.m.