CogPolygon GetVertices Method Cognex VisionPro 9.7
The X,Y coordinates of all vertices, returned as a two-dimensional array. The size of this array is automatically set to match the number of vertices.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 73.0.0.0
Syntax

public double[,] GetVertices()

Return Value

Type:  Double 

Array of vertices.

Exceptions

ExceptionCondition
ArgumentException

CoordinatesXY is not two-dimensional.

ArgumentException

The row or column lower bound is not zero.

ArgumentException

The number of columns is not two.

ArgumentException

The array type is not Double.

OUTOFMEMORYException

Additional vertices cannot be allocated.

Remarks

Returns the (x,y) coordinates of all vertices as a two-dimensional array. The size of this array is automatically set to match the number of vertices.

See Also