Learn R Programming

SpatialfdaR (version 1.0.0)

squareMesh_RL: Generate a Triangulation of a Square.

Description

The square is subdivided into m internal squares. Within each internal square, nodes are set at the corners. Each square is subdivided into two triangles by a line either going from lower left to upper right if orientation="L", of by a line from lower right to upper left is orientation="R".

Usage

squareMesh_RL(m=1,orientation="L")

Value

A named list containing locations of nodes and which nodes define the edge segments and the triangles. The members are:

  • p: A two-column matrix specifying the nodes of the mesh.

  • e: A two-column matrix of integers specifying which nodes define each edge segment.

  • t: A three-column matrix of integers specifying which nodes define each triangle in anti-clockwise order.

Arguments

m

The number of squares within the outer square.

orientation

The position of the lower corner of the diagonal line subdividing each square. This must be either "L" or "R".

Author

Jim Ramsay

Details

The outer square has sides of length m. If another length $x > 0$ of the side is required, this can easily be achieved by the command p = p*x/m.

References

Sangalli, Laura M., Ramsay, James O., Ramsay, Timothy O. (2013), Spatial spline regression models, Journal of the Royal Statistical Society, Series B, 75, 681-703.

See Also

link{plotFEM.mesh}