meshing {RGeostats}  R Documentation 
Perform Delaunay triangulation
meshing(db, triswitch = "qQ", dbaux=NA, gext=NA, opt.aux=0, verbose = FALSE, flag.plot=TRUE, flag.data=TRUE, ...)
db 
The 
triswitch 
Command line which may contain the following kkeywords:

dbaux 
Auxilary Db to be taken into account for triangulation. 
gext 
When 'dbaux' is organized as a grid, it may be dilated by gext. This argument designates an array, with its dimension equal to the dimension of the space and which contains the extension defined in number of grid nodes. 
opt.aux 
Option for taking the arguments 'dbaux' and 'gext' into account.
The use of 'gext' is limited to the case wher 'dbaux' is organized as a grid. 
verbose 
Verbose flag 
flag.plot 
When TRUE, the constraining vertices, holes and segments are represented. The created trinagles are also represented. 
flag.data 
When TRUE, the data points are overlaid. 
... 
Arguments passed for graphic function such as 
A list with the following contents:
npoint.ndim Number of coordinates in Point description
npoint.mark Number of markers in Point description
npoint.natt Number of attributes in Point description
points Matrix of Points. Dimension: number of Points [nrow] * (npoint.ndim + npoint.mark + npoint.natt) [ncol]
nseg.ndim Number of coordinates in Segment description
nseg.mark Number of markers in Segment description
segments Matrix of Segments. Each Segment is defined by the ranks of the two end Points. Dimension: number of Segments [nrow] * (nseg.ndim + nseg.mark) [ncol]
holes Matrix of holes. Dimension: number of holes [nrow] * 2 [ncol]
ntri.ndim Number of coordinates in Triangle description
ntri.natt Number of attributes in Triangle description
ntri.area Number of areas in Triangle description
triangles Matrix of Triangles. Each Triangle is defined by the ranks of the three corner Points. Dimension: number of triangles [nrow] * (ntri.ndim + ntri.natt + ntri.area) [ncol]
neigh Matrix of neighborhood. Each Triangle neighborhood is defined by the ranks of the three neighboring Triangles (1 if not defined for triangle on the edge of the area). Dimension: number of triangles [nrow] * 3.
# Load the Data Set from Jonathan Richard Shewchuk web site. rg.load("Demo.double.hex.db","tri.db") # Perform the basic triangulation # res = meshing(db=tri.db,triswitch="pQ") # Perform the triangulation with angle constraint # res = meshing(db=tri.db,triswitch="QY a0.5") # Remove file rm(tri.db, tri.res)