Returns a simplified polygon that is equivalent to V. Requires polygon V not overlap itself.
Syntax |
Description |
---|---|
polyclean(V, {"tolerance": tol_val}) |
Returns a simplified polygon corresponding to the vertices V by taking the following steps:
|
Example
The following example shows the removal of duplicate vertices in a triangle.
V = [0,0;
1,0;
0,1;
0,0]; # (0,0) is duplicated
?polyclean(V);
result:
0 0
1 0
0 1
See Also
List of commands , polygrow , polyarea , centroid , polyintersect , inpoly , polyand , polyor , polydiff , polyxor