rotate_surf: Rotate a '"surf"' object

View source: R/rotate_surf.R

rotate_surfR Documentation

Rotate a "surf" object

Description

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

Usage

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 surface-related: add_surf(), boundary_mask_surf(), edit_mask_surf(), even_vert_samp(), is.surf(), load_surf(), mask_surf(), read_surf(), resample_surf(), surf_area(), view_surf(), write_surf_gifti()


ciftiTools documentation built on Oct. 4, 2024, 1:12 a.m.