Return the average X and Y coordinates of all the vertices. Generates an error if there are no vertices.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Syntax
Exceptions
| Exception | Condition |
|---|---|
| CogShapeDegeneratePolygonException | NumVertices < 1. |
Remarks
Returns the average x- and y-coordinates of all the vertices.
See Also