ensure.tmesh3d: 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)
Value
tmesh3d instance, the input or converted from the input.
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.