Please, find the attached picture. I have the following x and y coordinates of a geometry which are the vertices of a geometry but they are not orderly arranged (1). I need the vertices to be arranged following a counterclockwise direction in order to be able to estimate the perimeter correctly (2). Please, how can I achieve this with matlab code? Thank you so much.
(1) unordered verticesx y0 10.5 00 0.50.5 0.80.5 0.50.3 1 0.5 0.20.5 10 00.4 00.1 10.1 00 0.80 0 (2) ordered vertices in counterclockwise directionx y0 00.1 00.4 00.5 00.5 0.20.5 0.50.5 0.80.5 10.3 10.1 10 10 0.80 0.50 0
Best Answer