centroid_polygon_vertices

compas.geometry.centroid_polygon_vertices(polygon)[source]

Compute the centroid of the vertices of a polygon.

Parameters

polygon (list of point) – A sequence of polygon point coordinates.

Returns

list – The XYZ coordinates of the centroid.