meshing {RGeostats} | R Documentation |
Perform Meshing
meshing(db=NA, dbaux=NA, triswitch = "Q", gext=NA, extendmin=NA, extendmax=NA, cellsize=NA, rotmat=NA, mesh=NA, verbose = FALSE, flag.plot=FALSE, ...)
db |
First |
dbaux |
Auxilary |
triswitch |
The argument 'triswitch' depends on the type of meshing (i.e triangles, tetrehedra or triangles on the sphere). For Triangulation, please use the following keywords:
For Tetrahedralization, please use the following keywords:
For Triangulation on the Sphere, please use the following keywords (followed by 'xxx') to generate points on the Sphere
|
gext |
The 'dbaux' 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 in each direction. |
extendmin |
Array containing the minimum values along all space coordinates. This information is compulsory to run the Turbo Meshing. It will be ignored when using the Standard Meshing ('dbin' or 'dbout' defined). |
extendmax |
Array containing the maximum values along all space coordinates. This information is compulsory to run the Turbo Meshing. It will be ignored when using the Standard Meshing ('dbin' or 'dbout' defined). |
cellsize |
Array containing the spacing interval along all space coordinates. This information is compulsory to run the Turbo Meshing. It will be ignored when using the Standard Meshing ('dbin' or 'dbout' defined). |
rotmat |
Array containing the rotation matrix (Dimension: ndim x ndim). This argument is optional. It will be used when running the Turbo Meshing and will be ignored when using the Standard Meshing ('dbin' or 'dbout' defined). |
mesh |
When provided, this argument provides the already existing meshing,
i.e. a |
verbose |
Verbose flag |
flag.plot |
When TRUE, the constraining vertices, holes and segments are represented. The created triangles are also represented. |
... |
Arguments passed for graphic function such as |
This function allows to define the meshing using ont of the following possibilities:
From one (db1) or two (db2) Dbs, with a possible extension (gext) and the meshing option (triswitch)
From a bounding Box (extendmin, extendmax, cellsize) possibly rotated rotmat)
From an already existing meshing (mesh)
Note that when several entries are possible, the choice is performed according to the list given above.
The resulting mesh-class
object.
# 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="Q") # Perform the triangulation with surface constraint # res = meshing(db=tri.db,triswitch="Qa0.005") # Remove file rm(tri.db, tri.res)