make_mesh {BayesfMRI}R Documentation

Make Mesh

Description

Make INLA triangular mesh from faces and vertices

Usage

make_mesh(vertices, faces, use_INLA = TRUE)

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.

use_INLA

(logical) Use the INLA package to make the mesh? Default: TRUE. Otherwise, mesh construction is based on an internal function, galerkin_db.

Value

INLA triangular 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.


[Package BayesfMRI version 0.3.11 Index]