Skip to contents

Loads a GIFTI (.surf.gii) surface into a SurfaceGeometry. The usual public entry point for reading a surface from disk is read_surf_geometry / read_surf; this function is the GIFTI-specific loader it dispatches to. For convenience it also accepts a file path directly, in which case the header is read internally.

Usage

loadGIFTISurface(meta_info)

Arguments

meta_info

either a GIFTISurfaceGeometryMetaInfo instance, or a length-one character path to a .surf.gii / .gii file.

Value

a class of type SurfaceGeometry

Details

requires rgl library

Examples

# \donttest{
# Either pass a path directly ...
# geom <- loadGIFTISurface("lh.midthickness.surf.gii")
# ... or go through the meta-info object:
# meta <- read_meta_info(neurosurf:::GIFTI_SURFACE_DSET, "lh.midthickness.surf.gii")
# geom <- loadGIFTISurface(meta)
# }