Question by
Damjan-Mozetic · May 17, 2018 at 01:25 PM ·
editorhandlespolygonconvex
Handles.DrawAAConvexPolygon, but for any kind of polygon, not just convex.
I have been looking through the API docs and found the DrawAAConvexPolygon method, which essentially takes an array of Vector3s and draws a polygon on screen. The problem is, that I have a set of points that would make a polygon that is not necessarily convex. Does anyone have a solution of a handle that would draw such a poly? Thank you!
Comment
How the function could know where to "dig" inside the polygon?
Well, as far as I understand, it could triangulate it going clockwise.
The thing you do not quite understand can be summarized in the following image :
Your answer