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

View source: R/mesh_helpers.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/haze documentation built on Feb. 28, 2023, 11:45 p.m.