ensure.tmesh3d: Ensure the mesh is a tmesh3d instance. Will convert...

View source: R/geodesic.R

ensure.tmesh3dR Documentation

Ensure the mesh is a tmesh3d instance. Will convert fs.surfaces to one automatically.

Description

Ensure the mesh is a tmesh3d instance. Will convert fs.surfaces to one automatically.

Usage

ensure.tmesh3d(mesh)

Arguments

mesh

whatever, but hopefully an rgl::tmesh3d or freesurferformats::fs.surface instance. Can be a character string, which will be loaded as a surface file if it exists.

Value

tmesh3d instance, the input or converted from the input.

Note

This function will stop if the mesh cannot be converted to tmesh3d.


dfsp-spirit/fsbrain documentation built on Nov. 28, 2024, 10:29 a.m.