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?
Best Answer