Learn R Programming

BayesfMRI (version 0.10.1)

make_mesh: Make Mesh

Description

Make INLA triangular mesh from faces and vertices

Usage

make_mesh(vertices, faces)

Value

INLA triangular mesh

Arguments

vertices

A \(V \times 3\) matrix, where each row contains the Euclidean coordinates at which a given vertex in the mesh is located. \(V\) is the number of vertices in the mesh

faces

An \(F \times 3\) matrix, where each row contains the vertex indices for a given triangular face in the mesh. \(F\) is the number of faces in the mesh.

INLA Requirement

This function requires the INLA package, which is not a CRAN package. See https://www.r-inla.org/download-install for easy installation instructions.