inla.mesh.boundary {INLA} | R Documentation

## Constraint segment extraction for inla.mesh

### Description

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

### Usage

    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

    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)

[Package INLA version 18.07.12 Index]