First, find the center of the bounding box that contains all of your vertices. We'll call this point C.
Sort your list of vertices based on each point's angle with respect to C. You can use atan2
(point.y - C.y, point.x - C.x)
to find the angle. If two or more vertices have the same angle, the one closer to C should come first.
Then, draw your points in the order they appear in the list. You will end up with a starburst pattern that is non-intersecting and probably non-convex. Example:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…