Learn R Programming

RSurvey (version 0.4.3)

autocrop: Auto Crop Spatial Domain

Description

Eliminate mesh cells with arc lengths greater than a user defined maximum.

Usage

autocrop(mesh, maxLength, maxItr)

Arguments

mesh
an object of class tri.
maxLength
the maximum arc length for a cell within the mesh.
maxItr
the maximum number of iterations.

Value

  • A polygon of class gpc.poly.

See Also

polyAutocrop

Examples

Run this code
data(tritest)
mesh <- tri.mesh(tritest$x, tritest$y)
plot(mesh); axis(1); axis(2); box()
ply <- autocrop(mesh, maxLength = 0.5, maxItr = 100)
plot(ply, add = TRUE, poly.args = list(col = 2))

Run the code above in your browser using DataLab