Whats the equation to make sure a set of vertices, in clockwise or counterclockwise winding, actually form a polygon (without overlapping edges)?
2026-03-29 14:06:45.1774793205
Equation to check if a set of vertices form a real polygon?
5.2k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
A slower but easier-to-implement algorithm than that suggested by lhf, is to check each segment against every other, and verify that two segments only intersect at an endpoint they share, and that each vertex is shared by exactly two segments. For this you need only robust segment-segment intersection code, which is available on the web in many locations, including here.