mesh2d: Illustrative code for building a mesh in 2d domain.

View source: R/mesh2d.R

mesh2dR Documentation

Illustrative code for building a mesh in 2d domain.

Description

Creates a mesh object. This is just a test code. For efficient, reliable and general code use the fmesher package.

Usage

mesh2d(loc, domain, max.edge, offset, SP = TRUE)

Arguments

loc

a two column matrix with location coordinates.

domain

a two column matrix defining the domain.

max.edge

the maximum edge length.

offset

the length of the outer extension.

SP

logical indicating if the output will include the SpatialPolygons.

Value

a mesh object.

Warning

This is just for illustration purpose and one should consider the efficient function available a the INLA package.


INLAspacetime documentation built on April 4, 2025, 1:38 a.m.