segments without splitting them. This imput can be used to define the boundaries
of the domain. If this imput is NULL, it generates a triangulation over the
convex hull of the points.create.MESH.2D(nodes, nodesattributes = NA, segments = NA, holes = NA,
triangles = NA, order = 1, verbosity = 0)nodes of the vertices where the segment starts from and ends to.
Segments are edges that are not splitted during the triangulation process. These are for instance used to define order = 1) or #triangles-by-6 (when order = 2) matrix.
This option is used when a triangulation is already available. It specifies the triangles giving the row's indices in nodes of the triangverbosity = 0 no message is returned
during the triangulation. When verbosity = 2 the triangulation process is described step by nodesnodesmarkersnodesattributestrianglesorder = 1) or #triangles-by-6 (when order = 2) matrix.
This option is used when a triangulation is already available. It specifies the triangles giving the indices in nodes of the triangles' vertices and (when nodes = 2) also if the triangles' edges midpoints. The triangles' vertices and midpoints are ordered as described
at
https://www.cs.cmu.edu/~quake/triangle.highorder.html.segmentsmarkersegments is a boundary segment;
an entry '0' indicates that the corresponding segment is not a boundary segment.edgesnodes, indicating the nodes where the edge starts from and ends to.edgesmarkersedge is a boundary edge;
an entry '0' indicates that the corresponding edge is not a boundary edge.neighborsholesorderorder = 1.refine.MESH.2D, create.FEM.basis## Upload the Meuse data
data(MeuseData)
## Create a triangulation on the convex hull of these data,
## where each data location is a triangle vertex
mesh <- create.MESH.2D(nodes = MeuseData[,c(2,3)], order = 1)
## Plot the mesh
plot(mesh)
## Upload a domain boundary for these data
data(MeuseBorder)
## Create a constrained Delaunay triangulation with the provided boundary
## where each datalocation is a triangle vertex
mesh <- create.MESH.2D(nodes = MeuseData[,c(2,3)], segments = MeuseBorder, order = 1)
## Plot the mesh
plot(mesh)Run the code above in your browser using DataLab