Why does the "polyshape" function deletes the vertices in the input when there are no duplicated points or intersections?
Show older comments
Why does the "polyshape" function deletes the vertices in the input when there are no duplicated points or intersections?
I am receiving the following warning message when I am using the "polyshape" function:
Warning: Polyshape has duplicate vertices, intersections, or other inconsistencies that may produce inaccurate or unexpected
results. Input data has been modified to create a well-defined polyshape.
> In polyshape/checkAndSimplify (line 339)
Why does the function deletes half the total number of vertices in the input when there are no duplicated points or intersections?
I have checked the points and the order by using fill function. There is no duplicated points or intersections. If you run the attached script (questionScript.m) and zoom in, you can see that each 2 points are very close to each other and "polyshape" function deletes one of the point in each pair.
Is it the case that the function just treats close points as duplicated points? If so, is there a way to set an absolute threshold distance that the function can treat the close points as duplicates?
Accepted Answer
More Answers (0)
Categories
Find more on Polygonal Shapes in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!