get_polygon_centroid#

static GeometryOperators.get_polygon_centroid(pts)[source]#

Evaluate the centroid of a polygon defined by its points.

Parameters:
ptsList

List of points, with each point defined by its [x,y,z] coordinates.

Returns:
List

List of [x,y,z] coordinates for the centroid of the polygon.