centroid_polygon_vertices
- compas.geometry.centroid_polygon_vertices(polygon)[source]
Compute the centroid of the vertices of a polygon.
- Parameters
polygon (sequence[[float, float, float] |
compas.geometry.Point
]) – A sequence of polygon point coordinates.- Returns
[float, float, float] – The XYZ coordinates of the centroid.