Skip to main content

Speos Labs automation APIs 2024 R1

SurfacePolygonBarycentre

Last update: 17.07.2025

Description

Return value: returns an array of 2 VARIANT representing of the barycentre x and y values for the given polygonal area.

Syntax

object.SurfacePolygonBarycentre(VARIANT* vPtX, VARIANT* vPtY) As Variant

  • object: Virtual Photometric Lab object

  • vPtX: array of VARIANT for the horizontal coordinate of each vertex of the polygon

  • vPtY: array of VARIANT for the vertical coordinate of each vertex of the polygon

Connect with Ansys