autocrop {RSurvey}R Documentation

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.

Author(s)

Fisher, J. C.

See Also

polyAutocrop

Examples

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))

[Package RSurvey version 0.4.5 Index]