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

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

Finn Lindgren finn.lindgren@gmail.com

Examples

loc = matrix(runif(100*2)*1000,100,2)
mesh = inla.mesh.create.helper(points.domain=loc, max.edge=c(50,500))
#> Warning: error in running command
#> Error in fmesher.read(prefix, "manifold"): File '/tmp/Rtmp4ztB6d/fmesher53bd2cd38166.manifold' does not exist.
boundary = inla.mesh.boundary(mesh)
#> Error: object 'mesh' not found
interior = inla.mesh.interior(mesh)
#> Error: object 'mesh' not found