autocrop {RSurvey} | R Documentation |
Eliminate mesh cells with arc lengths greater than a user defined maximum.
autocrop(mesh, maxLength, maxItr)
mesh |
an object of class tri . |
maxLength |
the maximum arc length for a cell within the mesh. |
maxItr |
the maximum number of iterations. |
A polygon of class gpc.poly
.
Fisher, J. C.
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))