get_polygon_centroid#

static GeometryOperators.get_polygon_centroid(pts: list) list#

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.

Examples

>>> from ansys.aedt.core.modeler.geometry_operators import GeometryOperators
>>> obj = GeometryOperators()
>>> obj.get_polygon_centroid(pts=["Box1"])