get_polygon_centroid#
- static GeometryOperators.get_polygon_centroid(pts: list) list#
Evaluate the centroid of a polygon defined by its points.
- Parameters:
- pts
List List of points, with each point defined by its
[x,y,z]coordinates.
- pts
- Returns:
ListList 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"])