"surf"
objectCoerce a file path to a surface GIFTI, a "gifti"
object, a list with
entries "pointset" and "triangle", or a "surf"
object to a
"surf"
object.
make_surf(surf, expected_hemisphere = NULL)gifti_to_surf(surf, expected_hemisphere = NULL)
Either a file path to a surface GIFTI; a "gifti" object
read by readgii
; a list with entries "pointset" and
"triangle"; or, a "surf"
object.
The expected hemisphere ("left"
or "right"
)
of surf
. If the hemisphere indicated in the GIFTI metadata is the
opposite, an error is raised. If NULL
(default), use the GIFTI
hemisphere.
The "surf"
object: a list with components "vertices"
(3D spatial locations), "faces"
(defined by three vertices), and
"hemisphere"
("left"
, "right"
, or NULL
if
unknown).