Learn R Programming

RSurvey (version 0.5.0)

autocrop: Autocrop Spatial Domain

Description

This function removes mesh cells with arc lengths greater than a user specified maximum.

Usage

autocrop(mesh, maxLength, maxItr)

Arguments

mesh
tri; a Delaunay triangulation
maxLength
numeric; maximum arc length for a cell within the mesh
maxItr
integer; maximum number of iterations

Value

  • Returns a polygon object of class gpc.poly.

See Also

polyAutocrop, tri.mesh

Examples

Run this code
data(tritest)
mesh <- tri.mesh(tritest$x, tritest$y)
plot(mesh)
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