Most efficient way to create a planar polygon from points on a surface

Hello, I`m setting up a galapagos definition therefore I would like to optimize the creation of a planar and convex polygon that is created by n points moved around on a surface.

Galapagos will move the points created by the gene pool in a very chaotic manner so the order of the points won´t always be ordered in a clockwise (or anti-clockwise) way. Therefore I cannot simply use the [Polyline] component to connect the points (this would create “concave” Z or X shapes most of the time)

What is the fasted way to create a closed, convex and planar polygon by n points on a surface?

Thanks in advance!

Convex Hull ?


thanks :smiley: