Return the index number of the vertex nearest to the supplied X,Y coordinates. Generates an error if there are no vertices.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 75.1.0.0
Syntax
Return Value
Type: Int32Index or the nearest vertex.
Exceptions
| Exception | Condition |
|---|---|
| CogShapeDegeneratePolygonException | NumVertices < 1. |
Remarks
Returns the index number of the vertex nearest to the supplied (x,y) coordinates.
See Also