Compute the centroid of the vertices of a polygon.
polygon (sequence[[float, float, float] | Point]) – A sequence of polygon point coordinates.
Point
[float, float, float] – The XYZ coordinates of the centroid.
A computational framework for collaboration and research in Architecture, Engineering, Fabrication, and Construction.
Copyright © 2017-2021 compas-dev