area_polygon
- compas.geometry.area_polygon(polygon)[source]
Compute the area of a polygon.
- Parameters:
- polygonsequence[point] |
compas.geometry.Polygon
The XYZ coordinates of the vertices/corners of the polygon. The vertices are assumed to be in order. The polygon is assumed to be closed: the first and last vertex in the sequence should not be the same.
- polygonsequence[point] |
- Returns:
- float
The area of the polygon.
See also