inla.mesh.boundary: Constraint segment extraction for inla.mesh

Description Usage Arguments Value Author(s) See Also Examples

View source: R/mesh.R

Description

Constructs an list of inla.mesh.segment object from boundary or interior constraint information in an inla.mesh object.

Usage

1
2
inla.mesh.boundary(mesh, grp = NULL)
inla.mesh.interior(mesh, grp = NULL)

Arguments

mesh

An inla.mesh object.

grp

Group indices to extract. If NULL, all boundary/interior constrain groups are extracted.

Value

A list of inla.mesh.segment objects.

Author(s)

Finn Lindgren finn.lindgren@gmail.com

See Also

inla.mesh.segment, inla.mesh.create, inla.mesh.create.helper

Examples

1
2
3
4
loc = matrix(runif(100*2)*1000,100,2)
mesh = inla.mesh.create.helper(points.domain=loc, max.edge=c(50,500))
boundary = inla.mesh.boundary(mesh)
interior = inla.mesh.interior(mesh)

inbo/INLA documentation built on Dec. 6, 2019, 9:51 a.m.