surface_to_obj: Convert Freesurfer Surface to Wavefront OBJ

Description Usage Arguments Value Examples

View source: R/convert_surface.R

Description

Reads in a surface file from Freesurfer and converts it to a Wavefront OBJ file

Usage

1
surface_to_obj(infile, outfile = NULL, ...)

Arguments

infile

Input surface file

outfile

output Wavefront OBJ file. If NULL, a temporary file will be created

...

additional arguments to pass to convert_surface

Value

Character filename of output file

Examples

1
2
3
4
5
if (have_fs()) {
infile = file.path(fs_subj_dir(), 
                   "bert", "surf", "rh.pial")
res = surface_to_obj(infile = infile)
}

freesurfer documentation built on Dec. 9, 2020, 1:07 a.m.