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".
squareMesh_RL(m=1,orientation="L")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.
The number of squares within the outer square.
The position of the lower corner of the diagonal line
subdividing each square. This must be either "L" or "R".
Jim Ramsay
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.
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.
link{plotFEM.mesh}