pslg | R Documentation |
A Planar Straight Line Graph (PSLG) is a collection of vertices and segments. Segments are edges whose endpoints are vertices in the PSLG, and whose presence in any mesh generated from the PSLG is enforced.
pslg(P, PB = NA, PA = NA, S = NA, SB = NA, H = NA)
P |
A 2-column matrix of x-y co-ordinates of vertices. There is one row per vertex. |
PB |
Vector of boundary markers of vertices. For each
vertex this is 1 if the point should be on a boundary of any mesh
generated from the PSLG and 0 otherwise. There should be as many
elements in |
PA |
Matrix of attributes which are typically
floating-point values of physical quantities (such as mass or
conductivity) associated with the nodes of a finite element
mesh. When triangulating using |
S |
A 2-column matrix of segments in which each row is
a segment. Segments are edges whose endpoints are vertices
in the PSLG, and whose presence in any mesh generated from the
PSLG is enforced. Each segment refers to the indices in |
SB |
Vector of boundary markers of segments. For each segment
this is 1 if the segment should be on a boundary of any mesh
generated from the PSLG and 0 otherwise. There should be as many
elements in |
H |
2-column matrix of holes, with one hole per row.Holes are specified by identifying a point inside each hole. After the triangulation is formed, Triangle creates holes by eating triangles, spreading out from each hole point until its progress is blocked by PSLG segments; you must be careful to enclose each hole in segments, or your whole triangulation might be eaten away. If the two triangles abutting a segment are eaten, the segment itself is also eaten. Do not place a hole directly on a segment; if you do, Triangle will choose one side of the segment arbitrarily. |
An object containing the input of type pslg
that
contains the information supplied in the inputs. This function
does some sanity checking of its inputs.
David Sterratt
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.