rotate_surf: Rotate a '"surf"' object

Description Usage Arguments Value See Also

View source: R/rotate_surf.R

Description

Rotate a "surf". Can be used to adjust the mesh orientation prior to view_xifti_surface.

Usage

1
rotate_surf(surf, r1 = 0, r2 = 0, r3 = 0, units = c("radians", "degrees"))

Arguments

surf

The "surf" object: see is.surf.

r1, r2, r3

Angle to rotate along the first, second, and third column's axis, in units (e.g. changing r1 will change the vertex positions in the second and third dimensions/columns, since the mesh is being rotated with respect to the first column's axis). Default: 0.

With view_xifti_surface and other mesh rendering functions that use rgl, these rotations seem to correspond to yaw, pitch, and roll, respectively.

units

"radians" (default) or "degrees".

Value

The rotated "surf"

See Also

Other functions for working with GIFTI surface geometry data: is.surf(), read_surf(), resample_surf(), view_surf(), write_surf_gifti()


neuroconductor/ciftiTools documentation built on Dec. 22, 2021, 1:09 a.m.