ensure.fs.surface: Check whether parameter is an fs.surface instance.

View source: R/mesh_helpers.R

ensure.fs.surfaceR Documentation

Check whether parameter is an fs.surface instance.

Description

Check whether parameter is an fs.surface instance.

Usage

ensure.fs.surface(surface)

Arguments

surface

an fs.surface instance which will be returned as-is, a tmesh3d which will be converted to a surface, or a character string which will be interpreted as a file system path and loaded with freesurferformats::read.fs.surface. Anything else will stop with an error.

Value

an fs.surface instance, unless an error occurs.


dfsp-spirit/haze documentation built on Feb. 28, 2023, 11:45 p.m.